1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 15:45:08 +01:00
Files
podman/pkg/machine/e2e/config_reset_test.go
2025-10-01 10:42:08 -04:00

26 lines
407 B
Go

package e2e_test
type resetMachine struct {
/*
-f, --force Stop and do not prompt before resetting
*/
force bool
cmd []string
}
func (i *resetMachine) buildCmd(_ *machineTestBuilder) []string {
cmd := []string{"machine", "reset"}
if i.force {
cmd = append(cmd, "--force")
}
i.cmd = cmd
return cmd
}
func (i *resetMachine) withForce() *resetMachine {
i.force = true
return i
}