mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
command/seal
This commit is contained in:
@@ -14,7 +14,9 @@ type UnsealCommand struct {
|
||||
}
|
||||
|
||||
func (c *UnsealCommand) Run(args []string) int {
|
||||
var reset bool
|
||||
flags := c.Meta.FlagSet("unseal", FlagSetDefault)
|
||||
flags.BoolVar(&reset, "reset", false, "")
|
||||
flags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := flags.Parse(args); err != nil {
|
||||
return 1
|
||||
@@ -67,6 +69,11 @@ General Options:
|
||||
not recommended. This is especially not recommended
|
||||
for unsealing a vault.
|
||||
|
||||
Unseal Options:
|
||||
|
||||
-reset Reset the unsealing process by throwing away
|
||||
prior keys in process to unseal the vault.
|
||||
|
||||
`
|
||||
return strings.TrimSpace(helpText)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user