mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Move meta into its own package
This commit is contained in:
@@ -12,11 +12,12 @@ import (
|
||||
"github.com/hashicorp/vault/helper/password"
|
||||
"github.com/hashicorp/vault/helper/pgpkeys"
|
||||
"github.com/hashicorp/vault/helper/xor"
|
||||
"github.com/hashicorp/vault/meta"
|
||||
)
|
||||
|
||||
// GenerateRootCommand is a Command that generates a new root token.
|
||||
type GenerateRootCommand struct {
|
||||
Meta
|
||||
meta.Meta
|
||||
|
||||
// Key can be used to pre-seed the key. If it is set, it will not
|
||||
// be asked with the `password` helper.
|
||||
@@ -30,7 +31,7 @@ func (c *GenerateRootCommand) Run(args []string) int {
|
||||
var init, cancel, status, genotp bool
|
||||
var nonce, decode, otp, pgpKey string
|
||||
var pgpKeyArr pgpkeys.PubKeyFilesFlag
|
||||
flags := c.Meta.FlagSet("generate-root", FlagSetDefault)
|
||||
flags := c.Meta.FlagSet("generate-root", meta.FlagSetDefault)
|
||||
flags.BoolVar(&init, "init", false, "")
|
||||
flags.BoolVar(&cancel, "cancel", false, "")
|
||||
flags.BoolVar(&status, "status", false, "")
|
||||
@@ -315,7 +316,7 @@ Usage: vault generate-root [options] [key]
|
||||
|
||||
General Options:
|
||||
|
||||
` + generalOptionsUsage() + `
|
||||
` + meta.GeneralOptionsUsage() + `
|
||||
|
||||
Rekey Options:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user