fixed "help collections list" message (#1142)

* fixed "help collections list" message

* corrected usage of "as well"
This commit is contained in:
mmetc 2022-01-03 17:09:07 +01:00 committed by GitHub
parent f46f0ae553
commit cf175ab07e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -136,8 +136,8 @@ func NewCollectionsCmd() *cobra.Command {
var cmdCollectionsList = &cobra.Command{ var cmdCollectionsList = &cobra.Command{
Use: "list collection [-a]", Use: "list collection [-a]",
Short: "List all collections or given one", Short: "List all collections",
Long: `List all collections or given one`, Long: `List all collections`,
Example: `cscli collections list`, Example: `cscli collections list`,
Args: cobra.ExactArgs(0), Args: cobra.ExactArgs(0),
DisableAutoGenTag: true, DisableAutoGenTag: true,
@ -145,7 +145,7 @@ func NewCollectionsCmd() *cobra.Command {
ListItem(cwhub.COLLECTIONS, args, false, true) ListItem(cwhub.COLLECTIONS, args, false, true)
}, },
} }
cmdCollectionsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items") cmdCollectionsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
cmdCollections.AddCommand(cmdCollectionsList) cmdCollections.AddCommand(cmdCollectionsList)
return cmdCollections return cmdCollections

View file

@ -66,7 +66,7 @@ cscli hub update # Download list of available configurations from the hub
ListItem(cwhub.PARSERS_OVFLW, args, true, false) ListItem(cwhub.PARSERS_OVFLW, args, true, false)
}, },
} }
cmdHubList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items") cmdHubList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
cmdHub.AddCommand(cmdHubList) cmdHub.AddCommand(cmdHubList)
var cmdHubUpdate = &cobra.Command{ var cmdHubUpdate = &cobra.Command{

View file

@ -135,7 +135,7 @@ cscli parser list crowdsecurity/xxx`,
ListItem(cwhub.PARSERS, args, false, true) ListItem(cwhub.PARSERS, args, false, true)
}, },
} }
cmdParsersList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items") cmdParsersList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
cmdParsers.AddCommand(cmdParsersList) cmdParsers.AddCommand(cmdParsersList)
return cmdParsers return cmdParsers

View file

@ -133,7 +133,7 @@ cscli postoverflows list crowdsecurity/xxx`,
ListItem(cwhub.PARSERS_OVFLW, args, false, true) ListItem(cwhub.PARSERS_OVFLW, args, false, true)
}, },
} }
cmdPostOverflowsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items") cmdPostOverflowsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
cmdPostOverflows.AddCommand(cmdPostOverflowsList) cmdPostOverflows.AddCommand(cmdPostOverflowsList)
return cmdPostOverflows return cmdPostOverflows

View file

@ -135,7 +135,7 @@ cscli scenarios list crowdsecurity/xxx`,
ListItem(cwhub.SCENARIOS, args, false, true) ListItem(cwhub.SCENARIOS, args, false, true)
}, },
} }
cmdScenariosList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items") cmdScenariosList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
cmdScenarios.AddCommand(cmdScenariosList) cmdScenarios.AddCommand(cmdScenariosList)
return cmdScenarios return cmdScenarios