mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
Move meta into its own package
This commit is contained in:
@@ -3,15 +3,17 @@ package command
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/hashicorp/vault/meta"
|
||||
)
|
||||
|
||||
// PolicyDeleteCommand is a Command that enables a new endpoint.
|
||||
type PolicyDeleteCommand struct {
|
||||
Meta
|
||||
meta.Meta
|
||||
}
|
||||
|
||||
func (c *PolicyDeleteCommand) Run(args []string) int {
|
||||
flags := c.Meta.FlagSet("policy-delete", FlagSetDefault)
|
||||
flags := c.Meta.FlagSet("policy-delete", meta.FlagSetDefault)
|
||||
flags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := flags.Parse(args); err != nil {
|
||||
return 1
|
||||
@@ -59,6 +61,6 @@ Usage: vault policy-delete [options] name
|
||||
|
||||
General Options:
|
||||
|
||||
` + generalOptionsUsage()
|
||||
` + meta.GeneralOptionsUsage()
|
||||
return strings.TrimSpace(helpText)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user