First commit of golang CLI.

This commit is contained in:
2025-08-31 11:51:11 -07:00
parent 4ca06aecb6
commit f0a2098f11
51 changed files with 8840 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
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
}