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