Initial build command
This commit is contained in:
parent
759261dcf1
commit
8c5b695de7
|
@ -0,0 +1,11 @@
|
|||
package packer
|
||||
|
||||
type buildCommand byte
|
||||
|
||||
func (buildCommand) Run(env *Environment, args []string) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (buildCommand) Synopsis() string {
|
||||
return "build machines images from Packer template"
|
||||
}
|
|
@ -42,6 +42,7 @@ type Environment struct {
|
|||
func NewEnvironment() *Environment {
|
||||
env := &Environment{}
|
||||
env.command = make(map[string]Command)
|
||||
env.command["build"] = new(buildCommand)
|
||||
env.command["version"] = new(versionCommand)
|
||||
env.ui = &ReaderWriterUi{os.Stdin, os.Stdout}
|
||||
return env
|
||||
|
|
Loading…
Reference in New Issue