mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-13 18:17:02 +02:00
parent
da81ab3b4c
commit
83d0f13a68
@ -25,7 +25,7 @@ func (c *PolicyListCommand) Run(args []string) int {
|
|||||||
} else {
|
} else {
|
||||||
flags.Usage()
|
flags.Usage()
|
||||||
c.Ui.Error(fmt.Sprintf(
|
c.Ui.Error(fmt.Sprintf(
|
||||||
"\npolicy expects zero or one arguments"))
|
"\npolicies expects zero or one arguments"))
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ func (c *PolicyListCommand) Synopsis() string {
|
|||||||
|
|
||||||
func (c *PolicyListCommand) Help() string {
|
func (c *PolicyListCommand) Help() string {
|
||||||
helpText := `
|
helpText := `
|
||||||
Usage: vault policy [options] [name]
|
Usage: vault policies [options] [name]
|
||||||
|
|
||||||
List the policies that are available or read a single policy.
|
List the policies that are available or read a single policy.
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ func init() {
|
|||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
|
|
||||||
"policy": func() (cli.Command, error) {
|
"policies": func() (cli.Command, error) {
|
||||||
return &command.PolicyListCommand{
|
return &command.PolicyListCommand{
|
||||||
Meta: meta,
|
Meta: meta,
|
||||||
}, nil
|
}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user