1package command 2 3import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7) 8 9var _ cli.Command = (*SecretsCommand)(nil) 10 11type SecretsCommand struct { 12 *BaseCommand 13} 14 15func (c *SecretsCommand) Synopsis() string { 16 return "Interact with secrets engines" 17} 18 19func (c *SecretsCommand) Help() string { 20 helpText := ` 21Usage: vault secrets <subcommand> [options] [args] 22 23 This command groups subcommands for interacting with Vault's secrets engines. 24 Each secret engine behaves differently. Please see the documentation for 25 more information. 26 27 List all enabled secrets engines: 28 29 $ vault secrets list 30 31 Enable a new secrets engine: 32 33 $ vault secrets enable database 34 35 Please see the individual subcommand help for detailed usage information. 36` 37 38 return strings.TrimSpace(helpText) 39} 40 41func (c *SecretsCommand) Run(args []string) int { 42 return cli.RunResultHelp 43} 44