enable version subcmd and --version flag for root cmd and all subcmds

This commit is contained in:
1138-4EB committed 2019-01-08 16:20:23 +01:00
1 parent ef56112711
commit b4708348c6
8 files changed
+51 -28

No files matched your search

+3 -2
View File
@@ -18,8 +18,9 @@ func init() {
}
var rulesCmd = &cobra.Command{
Use: "rules",
Short: "Rules management utility",
Use: "rules",
Version: rootCmd.Version,
Short: "Rules management utility",
Long: `On each subcommand you'll have available at least two flags:
"username" and "id". You must either set only one of them
or none. If you set one of them, the command will apply to