Documentation ¶
Index ¶
- func Template(destination io.Writer, name, text string, data interface{}) error
- type Level
- type UI
- func (ui *UI) EmphasizeInfoln(format string, args ...interface{})
- func (ui *UI) Errorln(format string, args ...interface{})
- func (ui *UI) Infoln(format string, args ...interface{})
- func (ui *UI) Output(format string, args ...interface{})
- func (ui *UI) SetContext(level Level) *UI
- func (ui *UI) SetUserLevel(level Level) *UI
- func (ui *UI) Titleln(format string, args ...interface{})
- func (ui *UI) Verboseln(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
type Level string
Level specifies the level of output that commands should print
const ( LevelVerbose Level = "Verbose" LevelInfo Level = "Info" LevelError Level = "Error" LevelSilent Level = "Silent" )
LevelVerbose includes all output
func (Level) OutputIsIncluded ¶
OutputIsIncluded returns true if levelA specifies that levelB should be included for output
type UI ¶
type UI struct { EffectiveLevel Level DefaultLevel Level UserLevel Level UserLevelSet bool Out io.Writer Err io.Writer }
UI is the abstraction of handling terminal output for shuttle
func (*UI) EmphasizeInfoln ¶
Click to show internal directories.
Click to hide internal directories.