forked from mystiq/dex
22c20e4e32
closes #220
21 lines
359 B
Go
21 lines
359 B
Go
package main
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
var (
|
|
// set by the top level build script
|
|
version = ""
|
|
|
|
cmdVersion = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print the dexctl version.",
|
|
Long: "Print the dexctl version.",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
stdout(version)
|
|
},
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(cmdVersion)
|
|
}
|