mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-17 10:31:45 +02:00
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())
|
|
},
|
|
}
|
|
)
|