netbird/client/cmd/version.go
Zoltan Papp 292ee260ad
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.
2023-03-15 07:54:51 +01:00

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())
},
}
)