Versions in this module Expand all Collapse all v0 v0.17.0 Jul 14, 2023 Changes in this version + var BRIGHT_GREEN = color.New(color.FgHiGreen, color.Bold) + var NonInteractivePasswordPrompt = fmt.Errorf("The non-interactive flag is set, so unable to prompt user for a password.") + func CommandInstalled(command string) bool + func CommandInstalledE(command string) error + func FPromptUserForInput(out io.Writer, in io.Reader, prompt string, options *ShellOptions) (string, error) + func FPromptUserForYesNo(out io.Writer, in io.Reader, prompt string, options *ShellOptions) (bool, error) + func PromptUserForInput(prompt string, options *ShellOptions) (string, error) + func PromptUserForPassword(prompt string, options *ShellOptions) (string, error) + func PromptUserForYesNo(prompt string, options *ShellOptions) (bool, error) + func RunShellCommand(options *ShellOptions, command string, args ...string) error + func RunShellCommandAndGetAndStreamOutput(options *ShellOptions, command string, args ...string) (string, error) + func RunShellCommandAndGetOutput(options *ShellOptions, command string, args ...string) (string, error) + func RunShellCommandAndGetStdout(options *ShellOptions, command string, args ...string) (string, error) + func RunShellCommandAndGetStdoutAndStreamOutput(options *ShellOptions, command string, args ...string) (string, error) + func RunShellCommandWithInput(options *ShellOptions, inputString string, command string, args ...string) error + type Output struct + func RunShellCommandAndGetOutputStruct(options *ShellOptions, command string, args ...string) (*Output, error) + func RunShellCommandAndGetOutputStructAndStreamOutput(options *ShellOptions, command string, args ...string) (*Output, error) + func (o *Output) Combined() string + func (o *Output) Stderr() string + func (o *Output) Stdout() string + type ShellOptions struct + Env map[string]string + Logger *logrus.Entry + NonInteractive bool + SensitiveArgs bool + WorkingDir string + func NewShellOptions() *ShellOptions