2020-05-15 09:39:16 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-10-13 10:28:24 +00:00
|
|
|
"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{
|
2021-08-31 13:03:47 +00:00
|
|
|
Use: "config [command]",
|
|
|
|
Short: "Allows to view current config",
|
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
DisableAutoGenTag: true,
|
2020-05-15 09:39:16 +00:00
|
|
|
}
|
2020-11-30 09:37:17 +00:00
|
|
|
|
2022-12-22 11:22:55 +00:00
|
|
|
cmdConfig.AddCommand(NewConfigShowCmd())
|
2023-05-11 19:01:13 +00:00
|
|
|
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-11-30 09:37:17 +00:00
|
|
|
|
2020-05-15 09:39:16 +00:00
|
|
|
return cmdConfig
|
|
|
|
}
|