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