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,30 @@
package secret
import (
"github.com/spf13/cobra"
)
// NewSecretCommand creates the secret command and its subcommands
func NewSecretCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "secret",
Short: "Manage Wild Cloud secrets",
Long: `Manage Wild Cloud secrets stored in secrets.yaml.
Secret values are stored as YAML and can be accessed using dot-notation paths.
Secret values are typically not displayed in output for security reasons.
Examples:
wild secret get database.password
wild secret set database.password mysecretpassword
wild secret get apps.myapp.api_key`,
}
// Add subcommands
cmd.AddCommand(
newGetCommand(),
newSetCommand(),
)
return cmd
}