Documentation ¶
Overview ¶
Package exec provides a wrapper around the os/exec package
Index ¶
- func Cmd(command string, args ...string) (string, string, error)
- func CmdWithContext(ctx context.Context, config Config, command string, args ...string) (string, string, error)
- func CmdWithPrint(command string, args ...string) error
- func CmdWithTesting(t *testing.T, config Config, command string, args ...string) (string, string, error)
- func GetOSShell(shellPref v1alpha1.Shell) (string, []string)
- func IsPowershell(shellName string) bool
- func LaunchURL(url string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdWithContext ¶
func CmdWithContext(ctx context.Context, config Config, command string, args ...string) (string, string, error)
CmdWithContext executes a given command with given config.
func CmdWithPrint ¶
CmdWithPrint executes a given command with given config and prints the command.
func CmdWithTesting ¶
func CmdWithTesting(t *testing.T, config Config, command string, args ...string) (string, string, error)
CmdWithTesting takes a *testing.T and generates a context the cancels on cleanup
func GetOSShell ¶
GetOSShell returns the shell and shellArgs based on the current OS
func IsPowershell ¶
IsPowershell returns whether a shell name is powershell
Types ¶
Click to show internal directories.
Click to hide internal directories.