mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-25 16:18:49 +01:00
292ee260ad
Add version command to signal and management servers. The version information will be filled during build time.
19 lines
316 B
Go
19 lines
316 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/netbirdio/netbird/version"
|
|
)
|
|
|
|
var (
|
|
versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "prints Netbird version",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
cmd.SetOut(cmd.OutOrStdout())
|
|
cmd.Println(version.NetbirdVersion())
|
|
},
|
|
}
|
|
)
|