Versions in this module Expand all Collapse all v0 v0.5.1 Aug 13, 2019 v0.5.0 Aug 13, 2019 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) + type ShellOptions struct + Env map[string]string + Logger *logrus.Logger + NonInteractive bool + SensitiveArgs bool + WorkingDir string + func NewShellOptions() *ShellOptions