Commit 399d8ab0 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Build command plugin

parent 8697cb6f
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
}
......
package main
import "github.com/mitchellh/packer/packer/plugin"
func main() {
plugin.ServeCommand(new(buildCommand))
}
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