github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/machine/e2e/config_stop.go (about)

     1  package e2e
     2  
     3  type stopMachine struct {
     4  	/*
     5  		No command line args other than a machine vm name (also not required)
     6  	*/
     7  	cmd []string
     8  }
     9  
    10  func (s stopMachine) buildCmd(m *machineTestBuilder) []string {
    11  	cmd := []string{"machine", "stop"}
    12  	if len(m.name) > 0 {
    13  		cmd = append(cmd, m.name)
    14  	}
    15  	return cmd
    16  }