crowdsec/cmd/crowdsec-cli/config.go

23 lines
534 B
Go
Raw Normal View History

2020-05-15 09:39:16 +00:00
package main
import (
"github.com/spf13/cobra"
2020-05-15 09:39:16 +00:00
)
func NewConfigCmd() *cobra.Command {
2022-12-22 11:22:55 +00:00
cmdConfig := &cobra.Command{
Use: "config [command]",
Short: "Allows to view current config",
Args: cobra.ExactArgs(0),
DisableAutoGenTag: true,
2020-05-15 09:39:16 +00:00
}
2022-12-22 11:22:55 +00:00
cmdConfig.AddCommand(NewConfigShowCmd())
cmdConfig.AddCommand(NewConfigShowYAMLCmd())
2022-12-22 11:22:55 +00:00
cmdConfig.AddCommand(NewConfigBackupCmd())
cmdConfig.AddCommand(NewConfigRestoreCmd())
2023-01-20 08:32:10 +00:00
cmdConfig.AddCommand(NewConfigFeatureFlagsCmd())
2020-05-15 09:39:16 +00:00
return cmdConfig
}