Files
podman/pkg/machine/e2e/config_info_test.go
Matt Souza 090304a054 lint: reenable revive unused-parameter check
Signed-off-by: Matt Souza <medsouz99@gmail.com>
2025-10-01 10:42:08 -04:00

21 lines
371 B
Go

package e2e_test
type infoMachine struct {
format string
cmd []string
}
func (i *infoMachine) buildCmd(_ *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
}