Documentation
¶
Index ¶
- func BgBlack(text string) string
- func BgBlue(text string) string
- func BgCyan(text string) string
- func BgGreen(text string) string
- func BgMagenta(text string) string
- func BgRed(text string) string
- func BgWhite(text string) string
- func BgYellow(text string) string
- func Black(text string) string
- func Blue(text string) string
- func Bold(text string) string
- func Cyan(text string) string
- func Dim(text string) string
- func Gray(text string) string
- func Green(text string) string
- func Hidden(text string) string
- func Inverse(text string) string
- func Italic(text string) string
- func Magenta(text string) string
- func Red(text string) string
- func Reset(text string) string
- func Strikethrough(text string) string
- func Underline(text string) string
- func White(text string) string
- func Yellow(text string) string
- type Formatter
- type ProgressBar
- type Style
- func (s *Style) Ask(questions string, defaultValue string, validator func(string) bool) string
- func (s *Style) AskHidden(question string, validator func(string) bool) string
- func (s *Style) Box(title string, body string, footer string, color string, info string)
- func (s *Style) Caution(messages []string)
- func (s *Style) Choice(question string, choices map[string]string, defaultValue string) string
- func (s *Style) Confirm(q string, defaultValue bool) (bool, error)
- func (s *Style) Err(messages []string)
- func (s *Style) Formatter() formatter.OutputFormatterInferface
- func (s *Style) Info(messages []string)
- func (s *Style) IsDebug() bool
- func (s *Style) IsDecorated() bool
- func (s *Style) IsQuiet() bool
- func (s *Style) IsVerbose() bool
- func (s *Style) IsVeryVerbose() bool
- func (s *Style) Listing(elements []string, prefix string)
- func (s *Style) NewLine(count int)
- func (s *Style) Note(messages []string)
- func (s *Style) ProgressAdvance(step uint)
- func (s *Style) ProgressFinish()
- func (s *Style) ProgressStart(max uint)
- func (s *Style) Section(message string)
- func (s *Style) SetDecorated(decorated bool)
- func (s *Style) SetFormatter(formatter formatter.OutputFormatterInferface)
- func (s *Style) SetVerbosity(level uint)
- func (s *Style) Success(messages []string)
- func (s *Style) Table(headers []string, rows map[string]string)
- func (s *Style) Text(messages []string)
- func (s *Style) Title(message string)
- func (s *Style) Verbosity() uint
- func (s *Style) Warning(messages []string)
- func (s *Style) Write(message string, newLine bool, options uint)
- func (s *Style) WriteMany(messages []string, newLine bool, options uint)
- func (s *Style) Writeln(message string, options uint)
- func (s *Style) Writelns(messages []string, options uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Strikethrough ¶
Types ¶
type Formatter ¶ added in v0.9.0
type Formatter func(self *ProgressBar, o output.OutputInterface) string
type ProgressBar ¶ added in v0.9.0
type ProgressBar struct {
// contains filtered or unexported fields
}
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
func NewStyle ¶
func NewStyle(i input.InputInterface, o output.OutputInterface) *Style
func (*Style) Formatter ¶
func (s *Style) Formatter() formatter.OutputFormatterInferface
func (*Style) IsDecorated ¶
func (*Style) IsVeryVerbose ¶
func (*Style) SetDecorated ¶
func (*Style) SetFormatter ¶
func (s *Style) SetFormatter(formatter formatter.OutputFormatterInferface)
func (*Style) SetVerbosity ¶
Click to show internal directories.
Click to hide internal directories.