Skip to content

Commit

Permalink
Merge branch 'master' into ui-generated-items
Browse files Browse the repository at this point in the history
  • Loading branch information
Noelle Daley authored Oct 16, 2019
2 parents 7374206 + 0b3777f commit 84ddaab
Show file tree
Hide file tree
Showing 140 changed files with 27,071 additions and 0 deletions.
11 changes: 11 additions & 0 deletions command/base_predict.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ func (b *BaseCommand) PredictVaultPolicies() complete.Predictor {
return NewPredict().VaultPolicies()
}

func (b *BaseCommand) PredictVaultDebugTargets() complete.Predictor {
return complete.PredictSet(
"config",
"host",
"metrics",
"pprof",
"replication-status",
"server-status",
)
}

// VaultFiles returns a predictor for Vault "files". This is a public API for
// consumers, but you probably want BaseCommand.PredictVaultFiles instead.
func (p *Predict) VaultFiles() complete.Predictor {
Expand Down
6 changes: 6 additions & 0 deletions command/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
BaseCommand: getBaseCommand(),
}, nil
},
"debug": func() (cli.Command, error) {
return &DebugCommand{
BaseCommand: getBaseCommand(),
ShutdownCh: MakeShutdownCh(),
}, nil
},
"delete": func() (cli.Command, error) {
return &DeleteCommand{
BaseCommand: getBaseCommand(),
Expand Down
Loading

0 comments on commit 84ddaab

Please sign in to comment.