Versions in this module Expand all Collapse all v1 v1.0.1 Sep 12, 2024 v1.0.0 Jan 28, 2024 Changes in this version + const ASCIIArtWarning + var ColorCommand = color.New(color.FgHiBlue, color.Bold) + var ColorErrorMsg = color.New(color.FgHiRed) + var ColorKeyword = color.New(color.FgHiBlue, color.Bold) + var ColorSuccessMsg = color.New(color.FgHiGreen) + var ColorWarningMsg = color.New(color.FgHiYellow) + func AddColorFunctions(addCallback func(string, any)) + func AddColorFunctionsForCobra() + func BeautifyCobraUsageAndHelp(rootCmd *cobra.Command) + func CheckCommandArgsAndMayPrintHelp(cmd *cobra.Command, args []string, minArgs int) (shouldContinue bool, err error) + func PrintTable(rows [][]string, header bool) + func Prompt(prompt string) string + func PromptForAnswerOrAbortError(answer string, format string, a ...any) error + func PromptForConfirmAnswer(answer string, format string, a ...any) (bool, string) + func PromptForConfirmNo(format string, a ...any) (bool, string) + func PromptForConfirmOrAbortError(format string, a ...any) error + func PromptForConfirmYes(format string, a ...any) (bool, string) + func PromptForPassword(format string, a ...any) string + func SuggestionFromFormat(format string, a ...any) (errorx.Property, string) + func SuggestionFromString(str string) (errorx.Property, string) + func SuggestionFromTemplate(templateStr string, data any) (errorx.Property, string) + type SSHConnectionProps struct + IdentityFile string + IdentityFilePassphrase string + Password string + func ReadIdentityFileOrPassword(identityFilePath string, usePass bool) (*SSHConnectionProps, error)