update doc generation (#926)
This commit is contained in:
parent
899b2abae7
commit
2f937cb53a
|
@ -202,6 +202,7 @@ func NewAlertsCmd() *cobra.Command {
|
|||
Use: "alerts [action]",
|
||||
Short: "Manage alerts",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
DisableAutoGenTag: true,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
var err error
|
||||
if err := csConfig.LoadAPIClient(); err != nil {
|
||||
|
|
|
@ -18,6 +18,7 @@ func NewConsoleCmd() *cobra.Command {
|
|||
Use: "console [action]",
|
||||
Short: "Manage interaction with Crowdsec console (https://app.crowdsec.net)",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
DisableAutoGenTag: true,
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
if err := csConfig.LoadAPIServer(); err != nil || csConfig.DisableAPI {
|
||||
log.Fatal("Local API is disabled, please run this command on the local API machine")
|
||||
|
|
|
@ -100,8 +100,7 @@ title: %s
|
|||
}
|
||||
|
||||
func linkHandler(name string) string {
|
||||
base := strings.TrimSuffix(name, path.Ext(name))
|
||||
return fmt.Sprintf("/docs/cscli/%s", base)
|
||||
return fmt.Sprintf("/cscli/%s", name)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
@ -112,6 +111,7 @@ func main() {
|
|||
Long: `cscli is the main command to interact with your crowdsec service, scenarios & db.
|
||||
It is meant to allow you to manage bans, parsers/scenarios/etc, api and generally manage you crowdsec setup.`,
|
||||
ValidArgs: validArgs,
|
||||
DisableAutoGenTag: true,
|
||||
/*TBD examples*/
|
||||
}
|
||||
var cmdDocGen = &cobra.Command{
|
||||
|
|
Loading…
Reference in a new issue