30f9358edc
This command prints out the components of a template, and most importantly respects the machine-readable flag so that you can programmatically inspect a template's contents without manually parsing the JSON.
15 lines
235 B
Go
15 lines
235 B
Go
package inspect
|
|
|
|
import (
|
|
"github.com/mitchellh/packer/packer"
|
|
"testing"
|
|
)
|
|
|
|
func TestCommand_Impl(t *testing.T) {
|
|
var raw interface{}
|
|
raw = new(Command)
|
|
if _, ok := raw.(packer.Command); !ok {
|
|
t.Fatalf("must be a Command")
|
|
}
|
|
}
|