packer-cn/packer/command_test.go

19 lines
298 B
Go
Raw Normal View History

package packer
type TestCommand struct {
2013-05-10 20:01:24 -04:00
runArgs []string
runCalled bool
2013-05-10 20:01:24 -04:00
runEnv Environment
}
func (tc *TestCommand) Run(env Environment, args []string) int {
tc.runCalled = true
tc.runArgs = args
tc.runEnv = env
return 0
}
func (tc *TestCommand) Synopsis() string {
return "foo"
}