fixed "help collections list" message (#1142)
* fixed "help collections list" message * corrected usage of "as well"
This commit is contained in:
parent
f46f0ae553
commit
cf175ab07e
|
@ -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
|
||||||
|
|
|
@ -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{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue