Co-authored-by: alteredCoder <kevin@crowdsec.net> Co-authored-by: he2ss <hamza.essahely@gmail.com> Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
22 lines
488 B
Go
22 lines
488 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewConfigCmd() *cobra.Command {
|
|
cmdConfig := &cobra.Command{
|
|
Use: "config [command]",
|
|
Short: "Allows to view current config",
|
|
Args: cobra.ExactArgs(0),
|
|
DisableAutoGenTag: true,
|
|
}
|
|
|
|
cmdConfig.AddCommand(NewConfigShowCmd())
|
|
cmdConfig.AddCommand(NewConfigBackupCmd())
|
|
cmdConfig.AddCommand(NewConfigRestoreCmd())
|
|
cmdConfig.AddCommand(NewConfigFeatureFlagsCmd())
|
|
|
|
return cmdConfig
|
|
}
|