Files
wild-cloud/wild-cli/cmd/wild/config/config.go

30 lines
624 B
Go

package config
import (
"github.com/spf13/cobra"
)
// NewConfigCommand creates the config command and its subcommands
func NewConfigCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "config",
Short: "Manage Wild Cloud configuration",
Long: `Manage Wild Cloud configuration stored in config.yaml.
Configuration values are stored as YAML and can be accessed using dot-notation paths.
Examples:
wild config get cluster.name
wild config set cluster.domain example.com
wild config get apps.myapp.replicas`,
}
// Add subcommands
cmd.AddCommand(
newGetCommand(),
newSetCommand(),
)
return cmd
}