mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Move meta into its own package
This commit is contained in:
@@ -8,11 +8,12 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/hashicorp/vault/helper/kv-builder"
|
||||
"github.com/hashicorp/vault/meta"
|
||||
)
|
||||
|
||||
// WriteCommand is a Command that puts data into the Vault.
|
||||
type WriteCommand struct {
|
||||
Meta
|
||||
meta.Meta
|
||||
|
||||
// The fields below can be overwritten for tests
|
||||
testStdin io.Reader
|
||||
@@ -21,7 +22,7 @@ type WriteCommand struct {
|
||||
func (c *WriteCommand) Run(args []string) int {
|
||||
var field, format string
|
||||
var force bool
|
||||
flags := c.Meta.FlagSet("write", FlagSetDefault)
|
||||
flags := c.Meta.FlagSet("write", meta.FlagSetDefault)
|
||||
flags.StringVar(&format, "format", "table", "")
|
||||
flags.StringVar(&field, "field", "", "")
|
||||
flags.BoolVar(&force, "force", false, "")
|
||||
@@ -134,7 +135,7 @@ Usage: vault write [options] path [data]
|
||||
|
||||
General Options:
|
||||
|
||||
` + generalOptionsUsage() + `
|
||||
` + meta.GeneralOptionsUsage() + `
|
||||
|
||||
Write Options:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user