Files
podman/pkg/machine/e2e/config_reset_test.go
Daniel J Walsh 4f13b836bf Codespell code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:23:56 -05: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(m *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
}