diff options
Diffstat (limited to 'pkg/machine/e2e/config_info_test.go')
-rw-r--r-- | pkg/machine/e2e/config_info_test.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/machine/e2e/config_info_test.go b/pkg/machine/e2e/config_info_test.go new file mode 100644 index 000000000..4da40ab99 --- /dev/null +++ b/pkg/machine/e2e/config_info_test.go @@ -0,0 +1,20 @@ +package e2e_test + +type infoMachine struct { + format string + cmd []string +} + +func (i *infoMachine) buildCmd(m *machineTestBuilder) []string { + cmd := []string{"machine", "info"} + if len(i.format) > 0 { + cmd = append(cmd, "--format", i.format) + } + i.cmd = cmd + return cmd +} + +func (i *infoMachine) withFormat(format string) *infoMachine { + i.format = format + return i +} |