mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-08 08:15:29 -04:00
shuffling some bits
This commit is contained in:
parent
3d33486d29
commit
527deb3992
1 changed files with 23 additions and 23 deletions
46
commands.go
46
commands.go
|
|
@ -31,6 +31,29 @@ func init() {
|
|||
meta := command.Meta{Ui: ui}
|
||||
|
||||
Commands = map[string]cli.CommandFactory{
|
||||
"init": func() (cli.Command, error) {
|
||||
return &command.InitCommand{
|
||||
Meta: meta,
|
||||
}, nil
|
||||
},
|
||||
|
||||
"server": func() (cli.Command, error) {
|
||||
return &command.ServerCommand{
|
||||
Meta: meta,
|
||||
AuditBackends: map[string]audit.Factory{
|
||||
"file": auditFile.Factory,
|
||||
},
|
||||
CredentialBackends: map[string]logical.Factory{
|
||||
"app-id": credAppId.Factory,
|
||||
"github": credGitHub.Factory,
|
||||
},
|
||||
LogicalBackends: map[string]logical.Factory{
|
||||
"aws": aws.Factory,
|
||||
"consul": consul.Factory,
|
||||
},
|
||||
}, nil
|
||||
},
|
||||
|
||||
"help": func() (cli.Command, error) {
|
||||
return &command.HelpCommand{
|
||||
Meta: meta,
|
||||
|
|
@ -112,29 +135,6 @@ func init() {
|
|||
}, nil
|
||||
},
|
||||
|
||||
"init": func() (cli.Command, error) {
|
||||
return &command.InitCommand{
|
||||
Meta: meta,
|
||||
}, nil
|
||||
},
|
||||
|
||||
"server": func() (cli.Command, error) {
|
||||
return &command.ServerCommand{
|
||||
Meta: meta,
|
||||
AuditBackends: map[string]audit.Factory{
|
||||
"file": auditFile.Factory,
|
||||
},
|
||||
CredentialBackends: map[string]logical.Factory{
|
||||
"app-id": credAppId.Factory,
|
||||
"github": credGitHub.Factory,
|
||||
},
|
||||
LogicalBackends: map[string]logical.Factory{
|
||||
"aws": aws.Factory,
|
||||
"consul": consul.Factory,
|
||||
},
|
||||
}, nil
|
||||
},
|
||||
|
||||
"mount": func() (cli.Command, error) {
|
||||
return &command.MountCommand{
|
||||
Meta: meta,
|
||||
|
|
|
|||
Loading…
Reference in a new issue