Add version info command to signal server (#739)

Add version command to signal and management servers.

The version information will be filled during build time.
This commit is contained in:
Zoltan Papp
2023-03-15 07:54:51 +01:00
committed by GitHub
parent 2a1efbd0fd
commit 292ee260ad
20 changed files with 93 additions and 69 deletions

View File

@@ -2,9 +2,12 @@ package cmd
import (
"fmt"
"github.com/spf13/cobra"
"os"
"os/signal"
"github.com/spf13/cobra"
"github.com/netbirdio/netbird/version"
)
const (
@@ -25,6 +28,7 @@ var (
Use: "netbird-mgmt",
Short: "",
Long: "",
Version: version.NetbirdVersion(),
SilenceUsage: true,
}