netbird/client/cmd/version.go

18 lines
324 B
Go
Raw Normal View History

package cmd
import (
"github.com/netbirdio/netbird/client/system"
"github.com/spf13/cobra"
)
var (
versionCmd = &cobra.Command{
Use: "version",
2022-05-22 18:53:47 +02:00
Short: "prints Netbird version",
Run: func(cmd *cobra.Command, args []string) {
cmd.SetOut(cmd.OutOrStdout())
cmd.Println(system.WiretrusteeVersion())
},
}
)