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

@@ -7,6 +7,8 @@ import (
"runtime"
"github.com/spf13/cobra"
"github.com/netbirdio/netbird/version"
)
const (
@@ -20,9 +22,10 @@ var (
logFile string
rootCmd = &cobra.Command{
Use: "netbird-signal",
Short: "",
Long: "",
Use: "netbird-signal",
Short: "",
Long: "",
Version: version.NetbirdVersion(),
}
// Execution control channel for stopCh signal