mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-07 22:47:49 +00:00
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>
20 lines
366 B
Go
20 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
|
|
}
|