mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 11:33:48 +01:00
efbb5acf63
* moved wiretrustee version from main to system.info * added wiretrustee version for all supported platforms * typo corrected * refactor: use single WiretrusteeVersion() func to get version of the client Co-authored-by: braginini <bangvalo@gmail.com>
17 lines
301 B
Go
17 lines
301 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"github.com/wiretrustee/wiretrustee/client/system"
|
|
)
|
|
|
|
var (
|
|
versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "prints wiretrustee version",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
cmd.Println(system.WiretrusteeVersion())
|
|
},
|
|
}
|
|
)
|