mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	Software version used https://github.com/crate-ci/typos/releases/tag/v1.13.10 The binary was downloaded from https://github.com/crate-ci/typos/releases/download/v1.13.10/typos-v1.13.10-x86_64-unknown-linux-musl.tar.gz Command that was run: typos --write-changes docs cmd cni contrib dependencies docs hack libpod pkg utils False positives were manually removed. A few marshaling/existant typos were manually fixed. Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			628 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			628 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package e2e_test
 | 
						|
 | 
						|
type sshMachine struct {
 | 
						|
	/*
 | 
						|
		--username string   Username to use when ssh-ing into the VM.
 | 
						|
	*/
 | 
						|
 | 
						|
	username   string //nolint:unused
 | 
						|
	sshCommand []string
 | 
						|
}
 | 
						|
 | 
						|
func (s sshMachine) buildCmd(m *machineTestBuilder) []string {
 | 
						|
	cmd := []string{"machine", "ssh"}
 | 
						|
	if len(m.name) > 0 {
 | 
						|
		cmd = append(cmd, m.name)
 | 
						|
	}
 | 
						|
	if len(s.sshCommand) > 0 {
 | 
						|
		cmd = append(cmd, s.sshCommand...)
 | 
						|
	}
 | 
						|
	return cmd
 | 
						|
}
 | 
						|
 | 
						|
func (s *sshMachine) withUsername(name string) *sshMachine { //nolint:unused
 | 
						|
	s.username = name
 | 
						|
	return s
 | 
						|
}
 | 
						|
 | 
						|
func (s *sshMachine) withSSHCommand(sshCommand []string) *sshMachine {
 | 
						|
	s.sshCommand = sshCommand
 | 
						|
	return s
 | 
						|
}
 |