2013-05-02 18:20:12 -04:00
|
|
|
package packer
|
|
|
|
|
|
|
|
type TestCommand struct {
|
2013-05-10 20:01:24 -04:00
|
|
|
runArgs []string
|
2013-05-02 18:20:12 -04:00
|
|
|
runCalled bool
|
2013-05-10 20:01:24 -04:00
|
|
|
runEnv Environment
|
2013-05-02 18:20:12 -04:00
|
|
|
}
|
|
|
|
|
2013-06-02 14:41:12 -04:00
|
|
|
func (tc *TestCommand) Help() string {
|
|
|
|
return "bar"
|
|
|
|
}
|
|
|
|
|
2013-05-02 18:20:12 -04:00
|
|
|
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"
|
|
|
|
}
|