Documentation
¶
Index ¶
- Variables
- func AddingResource(message, resourceName string, mayTakeLong bool)
- func AskConfirm(message string, defaultYes bool) bool
- func AskConfirmWithNote(message string, defaultYes bool, note string) bool
- func AskQuestion(message, defaultValue string) string
- func AskQuestionWithNote(message, defaultValue, note string) string
- func Blank()
- func Debug(tokens ...string) (int, error)
- func Debugf(format string, a ...interface{}) (int, error)
- func Debugln(tokens ...string) (int, error)
- func DetailWithResource(message, resourceName string)
- func DetailWithResourceNote(message, resourceName, note string, negative bool)
- func EnableDebugf(enable bool, prefix string)
- func EnableErrorf(enable bool)
- func EnablePrintf(enable bool)
- func Error(message string)
- func ExitWithError(err error) error
- func ExitWithErrorString(format string, a ...interface{}) error
- func Info(message string)
- func ProcessingOnResource(message, resourceName string, mayTakeLong bool)
- func RemovingResource(message, resourceName string, mayTakeLong bool)
- func ShellCommand(message string)
- func ShellError(message string)
- func ShellOutput(message string)
- func UpdatingResource(message, resourceName string, mayTakeLong bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColorFnHelpLink = cc.Yellow ColorFnAskQuestionNote = cc.BlackH ColorFnAskQuestionMain = regularFn ColorFnAskQuestionDefaultValue = cc.YellowH ColorFnAskConfirmNote = cc.BlackH ColorFnAskConfirmMain = regularFn ColorFnAskConfirmDefaultAnswer = regularFn ColorFnAskConfirmAnswer = regularFn ColorFnInfoMessage = regularFn ColorFnDetailMessage = cc.BlackH ColorFnSideNote = cc.BlackH ColorFnSideNoteNegative = cc.Red ColorFnResource = cc.Green ColorFnResourceNegative = cc.Red ColorFnErrorHeader = cc.Red ColorFnErrorMessage = regularFn //ColorFnShellCommand = concat(cc.Bold, cc.YellowH) ColorFnShellCommand = cc.Cyan ColorFnShellOutput = cc.BlackH ColorFnShellError = cc.Red ColorFnMarkAdd = cc.Green ColorFnMarkRemove = cc.Red ColorFnMarkUpdate = cc.BlueH ColorFnMarkProcessing = cc.BlueH ColorFnMarkQuestion = cc.BlackH ColorFnMarkShell = regularFn )
View Source
var ( MarkAdd = "[+]" MarkRemove = "[-]" MarkUpdate = "[*]" MarkProcessing = "[*]" MarkQuestion = ">" MarkShell = ">" )
Functions ¶
func AddingResource ¶
func AskConfirm ¶
func AskConfirmWithNote ¶
func AskQuestion ¶
func AskQuestionWithNote ¶
func DetailWithResource ¶
func DetailWithResource(message, resourceName string)
func DetailWithResourceNote ¶
func EnableDebugf ¶
func EnableErrorf ¶
func EnableErrorf(enable bool)
func EnablePrintf ¶
func EnablePrintf(enable bool)
func ExitWithError ¶
func ExitWithErrorString ¶
func ProcessingOnResource ¶
func RemovingResource ¶
func ShellCommand ¶
func ShellCommand(message string)
func ShellError ¶
func ShellError(message string)
func ShellOutput ¶
func ShellOutput(message string)
func UpdatingResource ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.