shuffling some bits

This commit is contained in:
Mitchell Hashimoto 2015-04-07 13:46:35 -07:00
parent 3d33486d29
commit 527deb3992

View file

@ -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,