diff --git a/command/build/command.go b/command/build/command.go index dfb8df60b..a4762fc74 100644 --- a/command/build/command.go +++ b/command/build/command.go @@ -1,12 +1,11 @@ -package build +package main -import "fmt" import "github.com/mitchellh/packer/packer" -type Command byte +type buildCommand byte -func (Command) Run(env *packer.Environment, arg []string) int { - fmt.Println("HI!") +func (Command) Run(env packer.Environment, arg []string) int { + env.Ui().Say("BUILDING!") return 0 } diff --git a/command/build/main.go b/command/build/main.go new file mode 100644 index 000000000..5fa53f2fe --- /dev/null +++ b/command/build/main.go @@ -0,0 +1,7 @@ +package main + +import "github.com/mitchellh/packer/packer/plugin" + +func main() { + plugin.ServeCommand(new(buildCommand)) +}