Fix compilation, use the new command.Meta object
This commit is contained in:
parent
3a851bece0
commit
77bfa5657e
22
commands.go
22
commands.go
|
@ -26,40 +26,40 @@ func init() {
|
||||||
Ui: &cli.BasicUi{Writer: os.Stdout},
|
Ui: &cli.BasicUi{Writer: os.Stdout},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
meta := command.Meta{
|
||||||
|
ContextOpts: &ContextOpts,
|
||||||
|
Ui: Ui,
|
||||||
|
}
|
||||||
|
|
||||||
Commands = map[string]cli.CommandFactory{
|
Commands = map[string]cli.CommandFactory{
|
||||||
"apply": func() (cli.Command, error) {
|
"apply": func() (cli.Command, error) {
|
||||||
return &command.ApplyCommand{
|
return &command.ApplyCommand{
|
||||||
ShutdownCh: makeShutdownCh(),
|
Meta: meta,
|
||||||
ContextOpts: &ContextOpts,
|
ShutdownCh: makeShutdownCh(),
|
||||||
Ui: Ui,
|
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
|
|
||||||
"graph": func() (cli.Command, error) {
|
"graph": func() (cli.Command, error) {
|
||||||
return &command.GraphCommand{
|
return &command.GraphCommand{
|
||||||
ContextOpts: &ContextOpts,
|
Meta: meta,
|
||||||
Ui: Ui,
|
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
|
|
||||||
"plan": func() (cli.Command, error) {
|
"plan": func() (cli.Command, error) {
|
||||||
return &command.PlanCommand{
|
return &command.PlanCommand{
|
||||||
ContextOpts: &ContextOpts,
|
Meta: meta,
|
||||||
Ui: Ui,
|
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
|
|
||||||
"refresh": func() (cli.Command, error) {
|
"refresh": func() (cli.Command, error) {
|
||||||
return &command.RefreshCommand{
|
return &command.RefreshCommand{
|
||||||
ContextOpts: &ContextOpts,
|
Meta: meta,
|
||||||
Ui: Ui,
|
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
|
|
||||||
"show": func() (cli.Command, error) {
|
"show": func() (cli.Command, error) {
|
||||||
return &command.ShowCommand{
|
return &command.ShowCommand{
|
||||||
ContextOpts: &ContextOpts,
|
Meta: meta,
|
||||||
Ui: Ui,
|
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue