Commit 8c5b695d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Initial build command

parent 759261dc
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment