First commit of golang CLI.
This commit is contained in:
29
wild-cli/cmd/wild/config/config.go
Normal file
29
wild-cli/cmd/wild/config/config.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user