package config import ( "github.com/kubescape/kubescape/v2/core/meta" "github.com/spf13/cobra" ) var ( configExample = ` # View cached configurations kubescape config view # Delete cached configurations kubescape config delete # Set cached configurations kubescape config set --help ` setConfigExample = ` # Set account id kubescape config set accountID # Set client id kubescape config set clientID # Set access key kubescape config set secretKey # Set cloudAPIURL kubescape config set cloudAPIURL ` ) func GetConfigCmd(ks meta.IKubescape) *cobra.Command { // configCmd represents the config command configCmd := &cobra.Command{ Use: "config", Short: "Handle cached configurations", Example: configExample, } configCmd.AddCommand(getDeleteCmd(ks)) configCmd.AddCommand(getSetCmd(ks)) configCmd.AddCommand(getViewCmd(ks)) return configCmd }