Files
podman/pkg/machine/e2e/config_info.go
Ashley Cui 9d6efb3442 Podman machine info
Add podman machine info command, which displays infor about the machine
host as well as version info.

Signed-off-by: Ashley Cui <acui@redhat.com>
2022-07-05 15:18:41 -04:00

21 lines
366 B
Go

package e2e
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
}