command/auth

This commit is contained in:
Mitchell Hashimoto
2015-03-03 23:34:32 -08:00
parent 9cbbe58253
commit 2800987dd4
3 changed files with 124 additions and 1 deletions

View File

@@ -11,9 +11,37 @@ import (
var Commands map[string]cli.CommandFactory
func init() {
ui := &cli.BasicUi{Writer: os.Stdout}
ui := &cli.BasicUi{
Writer: os.Stdout,
ErrorWriter: os.Stderr,
}
meta := command.Meta{Ui: ui}
Commands = map[string]cli.CommandFactory{
"auth": func() (cli.Command, error) {
return &command.AuthCommand{
Meta: meta,
}, nil
},
/*
"get": func() (cli.Command, error) {
return nil, nil
},
"put": func() (cli.Command, error) {
return nil, nil
},
"seal": func() (cli.Command, error) {
return nil, nil
},
"unseal": func() (cli.Command, error) {
return nil, nil
},
*/
"version": func() (cli.Command, error) {
ver := Version
rel := VersionPrerelease