mirror of https://github.com/dexidp/dex.git
2 changed files with 22 additions and 1 deletions
@ -0,0 +1,21 @@
|
||||
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) |
||||
} |
||||
Loading…
Reference in new issue