Documentation
ΒΆ
Index ΒΆ
- Variables
- func Fprint(writer io.Writer, a ...interface{})
- func Fprintln(writer io.Writer, a ...interface{})
- func Fprinto(w io.Writer, a ...interface{})
- func GetTerminalHeight() int
- func GetTerminalSize() (width, height int, err error)
- func GetTerminalWidth() int
- func Print(a ...interface{})
- func Printf(format string, a ...interface{})
- func Println(a ...interface{})
- func Printo(a ...interface{})
- func RemoveColorFromString(a ...interface{}) string
- func SetDefaultOutput(w io.Writer)
- func Sprint(a ...interface{}) string
- func Sprintf(format string, a ...interface{}) string
- func Sprintln(a ...interface{}) string
- func Sprinto(a ...interface{}) string
- type BasicTextPrinter
- func (p *BasicTextPrinter) Print(a ...interface{}) *TextPrinter
- func (p *BasicTextPrinter) Printf(format string, a ...interface{}) *TextPrinter
- func (p *BasicTextPrinter) Println(a ...interface{}) *TextPrinter
- func (p BasicTextPrinter) Sprint(a ...interface{}) string
- func (p BasicTextPrinter) Sprintf(format string, a ...interface{}) string
- func (p BasicTextPrinter) Sprintln(a ...interface{}) string
- func (p BasicTextPrinter) WithStyle(style *Style) *BasicTextPrinter
- type Color
- func (c Color) Print(a ...interface{})
- func (c Color) Printf(format string, a ...interface{})
- func (c Color) Println(a ...interface{})
- func (c Color) Sprint(a ...interface{}) string
- func (c Color) Sprintf(format string, a ...interface{}) string
- func (c Color) Sprintln(a ...interface{}) string
- func (c Color) String() string
- type HeaderPrinter
- func (p *HeaderPrinter) Print(a ...interface{}) *TextPrinter
- func (p *HeaderPrinter) Printf(format string, a ...interface{}) *TextPrinter
- func (p *HeaderPrinter) Println(a ...interface{}) *TextPrinter
- func (p HeaderPrinter) Sprint(a ...interface{}) string
- func (p HeaderPrinter) Sprintf(format string, a ...interface{}) string
- func (p HeaderPrinter) Sprintln(a ...interface{}) string
- func (p HeaderPrinter) WithBackgroundStyle(style *Style) *HeaderPrinter
- func (p HeaderPrinter) WithFullWidth(b ...bool) *HeaderPrinter
- func (p HeaderPrinter) WithMargin(margin int) *HeaderPrinter
- func (p HeaderPrinter) WithTextStyle(style *Style) *HeaderPrinter
- type LivePrinter
- type ParagraphPrinter
- func (p *ParagraphPrinter) Print(a ...interface{}) *TextPrinter
- func (p *ParagraphPrinter) Printf(format string, a ...interface{}) *TextPrinter
- func (p *ParagraphPrinter) Println(a ...interface{}) *TextPrinter
- func (p ParagraphPrinter) Sprint(a ...interface{}) string
- func (p ParagraphPrinter) Sprintf(format string, a ...interface{}) string
- func (p ParagraphPrinter) Sprintln(a ...interface{}) string
- func (p ParagraphPrinter) WithMaxWidth(width int) *ParagraphPrinter
- type Prefix
- type PrefixPrinter
- func (p PrefixPrinter) GetFormattedPrefix() string
- func (p *PrefixPrinter) Print(a ...interface{}) *TextPrinter
- func (p *PrefixPrinter) Printf(format string, a ...interface{}) *TextPrinter
- func (p *PrefixPrinter) Println(a ...interface{}) *TextPrinter
- func (p *PrefixPrinter) Sprint(a ...interface{}) string
- func (p PrefixPrinter) Sprintf(format string, a ...interface{}) string
- func (p PrefixPrinter) Sprintln(a ...interface{}) string
- func (p PrefixPrinter) WithFatal(b ...bool) *PrefixPrinter
- func (p PrefixPrinter) WithMessageStyle(style Style) *PrefixPrinter
- func (p PrefixPrinter) WithPrefix(prefix Prefix) *PrefixPrinter
- func (p PrefixPrinter) WithScope(scope Scope) *PrefixPrinter
- type Progressbar
- func (p *Progressbar) Add(count int) *Progressbar
- func (p Progressbar) GenericStart() *LivePrinter
- func (p Progressbar) GenericStop() *LivePrinter
- func (p *Progressbar) GetElapsedTime() time.Duration
- func (p *Progressbar) Increment() *Progressbar
- func (p Progressbar) Start() *Progressbar
- func (p *Progressbar) Stop() *Progressbar
- func (p Progressbar) WithBarStyle(style *Style) *Progressbar
- func (p Progressbar) WithCurrent(current int) *Progressbar
- func (p Progressbar) WithElapsedTimeRoundingFactor(duration time.Duration) *Progressbar
- func (p Progressbar) WithLastCharacter(char string) *Progressbar
- func (p Progressbar) WithLineCharacter(char string) *Progressbar
- func (p Progressbar) WithShowCount(b ...bool) *Progressbar
- func (p Progressbar) WithShowElapsedTime(b ...bool) *Progressbar
- func (p Progressbar) WithShowPercentage(b ...bool) *Progressbar
- func (p Progressbar) WithShowTitle(b ...bool) *Progressbar
- func (p Progressbar) WithTitle(name string) *Progressbar
- func (p Progressbar) WithTitleStyle(style *Style) *Progressbar
- func (p Progressbar) WithTotal(total int) *Progressbar
- func (p Progressbar) WithUpdateDelay(delay time.Duration) *Progressbar
- type RGB
- func (p RGB) Fade(min, max, current float32, end RGB) RGB
- func (p RGB) GetValues() (r, g, b uint8)
- func (p *RGB) Print(a ...interface{}) *TextPrinter
- func (p *RGB) Printf(format string, a ...interface{}) *TextPrinter
- func (p *RGB) Println(a ...interface{}) *TextPrinter
- func (p RGB) Sprint(a ...interface{}) string
- func (p RGB) Sprintf(format string, a ...interface{}) string
- func (p RGB) Sprintln(a ...interface{}) string
- type RenderPrinter
- type Scope
- type SectionPrinter
- func (p *SectionPrinter) Print(a ...interface{}) *TextPrinter
- func (p *SectionPrinter) Printf(format string, a ...interface{}) *TextPrinter
- func (p *SectionPrinter) Println(a ...interface{}) *TextPrinter
- func (p SectionPrinter) Sprint(a ...interface{}) string
- func (p SectionPrinter) Sprintf(format string, a ...interface{}) string
- func (p SectionPrinter) Sprintln(a ...interface{}) string
- func (p SectionPrinter) WithBottomPadding(level int) *SectionPrinter
- func (p SectionPrinter) WithLevel(level int) *SectionPrinter
- func (p SectionPrinter) WithStyle(style Style) *SectionPrinter
- func (p SectionPrinter) WithTopPadding(level int) *SectionPrinter
- type Spinner
- func (s *Spinner) Fail(message ...interface{})
- func (s *Spinner) GenericStart() *LivePrinter
- func (s *Spinner) GenericStop() *LivePrinter
- func (s Spinner) Start(text ...interface{}) *Spinner
- func (s *Spinner) Stop()
- func (s *Spinner) Success(message ...interface{})
- func (s *Spinner) UpdateText(text string)
- func (s *Spinner) Warning(message ...interface{})
- func (s Spinner) WithDelay(delay time.Duration) *Spinner
- func (s Spinner) WithMessageStyle(style Style) *Spinner
- func (s Spinner) WithRemoveWhenDone(b ...bool) *Spinner
- func (s Spinner) WithSequence(sequence ...string) *Spinner
- func (s Spinner) WithStyle(style *Style) *Spinner
- func (s Spinner) WithText(text string) *Spinner
- type Style
- func (s Style) Add(styles ...Style) Style
- func (s Style) Code() string
- func (s Style) Print(a ...interface{})
- func (s Style) Printf(format string, a ...interface{})
- func (s Style) Println(a ...interface{})
- func (s Style) Sprint(a ...interface{}) string
- func (s Style) Sprintf(format string, a ...interface{}) string
- func (s Style) Sprintln(a ...interface{}) string
- func (s Style) String() string
- type Table
- func (p Table) Render()
- func (p Table) Srender() string
- func (p Table) WithCSVReader(reader *csv.Reader) *Table
- func (p Table) WithData(data [][]string) *Table
- func (p Table) WithHasHeader(b ...bool) *Table
- func (p Table) WithHeaderStyle(style *Style) *Table
- func (p Table) WithSeparator(separator string) *Table
- func (p Table) WithSeparatorStyle(style *Style) *Table
- func (p Table) WithStyle(style *Style) *Table
- type TableData
- type TextPrinter
- type Theme
- func (t Theme) WithDescriptionMessageStyle(style Style) Theme
- func (t Theme) WithDescriptionPrefixStyle(style Style) Theme
- func (t Theme) WithErrorMessageStyle(style Style) Theme
- func (t Theme) WithErrorPrefixStyle(style Style) Theme
- func (t Theme) WithFatalMessageStyle(style Style) Theme
- func (t Theme) WithFatalPrefixStyle(style Style) Theme
- func (t Theme) WithHighlightStyle(style Style) Theme
- func (t Theme) WithInfoMessageStyle(style Style) Theme
- func (t Theme) WithInfoPrefixStyle(style Style) Theme
- func (t Theme) WithPrimaryStyle(style Style) Theme
- func (t Theme) WithSecondaryStyle(style Style) Theme
- func (t Theme) WithSuccessMessageStyle(style *Style) Theme
- func (t Theme) WithSuccessPrefixStyle(style Style) Theme
- func (t Theme) WithWarningMessageStyle(style Style) Theme
- func (t Theme) WithWarningPrefixStyle(style Style) Theme
Constants ΒΆ
This section is empty.
Variables ΒΆ
var ( // Red is an alias for FgRed.Sprint. Red = FgRed.Sprint // Cyan is an alias for FgCyan.Sprint. Cyan = FgCyan.Sprint // Gray is an alias for FgGray.Sprint. Gray = FgGray.Sprint // Blue is an alias for FgBlue.Sprint. Blue = FgBlue.Sprint // Black is an alias for FgBlack.Sprint. Black = FgBlack.Sprint // Green is an alias for FgGreen.Sprint. Green = FgGreen.Sprint // White is an alias for FgWhite.Sprint. White = FgWhite.Sprint // Yellow is an alias for FgYellow.Sprint. Yellow = FgYellow.Sprint // Magenta is an alias for FgMagenta.Sprint. Magenta = FgMagenta.Sprint // Normal is an alias for FgDefault.Sprint. Normal = FgDefault.Sprint // LightRed is a shortcut for FgLightRed.Sprint. LightRed = FgLightRed.Sprint // LightCyan is a shortcut for FgLightCyan.Sprint. LightCyan = FgLightCyan.Sprint // LightBlue is a shortcut for FgLightBlue.Sprint. LightBlue = FgLightBlue.Sprint // LightGreen is a shortcut for FgLightGreen.Sprint. LightGreen = FgLightGreen.Sprint // LightWhite is a shortcut for FgLightWhite.Sprint. LightWhite = FgLightWhite.Sprint // LightYellow is a shortcut for FgLightYellow.Sprint. LightYellow = FgLightYellow.Sprint // LightMagenta is a shortcut for FgLightMagenta.Sprint. LightMagenta = FgLightMagenta.Sprint )
var ( // ErrTerminalSizeNotDetectable - the terminal size can not be detected and the fallback values are used. ErrTerminalSizeNotDetectable = errors.New("terminal size could not be detected - using fallback value") // ErrHexCodeIsInvalid - the given HEX code is invalid. ErrHexCodeIsInvalid = errors.New("hex code is not valid") )
var ( // Info returns a PrefixPrinter, which can be used to print text with an "info" Prefix. Info = PrefixPrinter{ MessageStyle: &ThemeDefault.InfoMessageStyle, Prefix: Prefix{ Style: &ThemeDefault.InfoPrefixStyle, Text: "INFO", }, } // Warning returns a PrefixPrinter, which can be used to print text with a "warning" Prefix. Warning = PrefixPrinter{ MessageStyle: &ThemeDefault.WarningMessageStyle, Prefix: Prefix{ Style: &ThemeDefault.WarningPrefixStyle, Text: "WARNING", }, } // Success returns a PrefixPrinter, which can be used to print text with a "success" Prefix. Success = PrefixPrinter{ MessageStyle: &ThemeDefault.SuccessMessageStyle, Prefix: Prefix{ Style: &ThemeDefault.SuccessPrefixStyle, Text: "SUCCESS", }, } // Error returns a PrefixPrinter, which can be used to print text with an "error" Prefix. Error = PrefixPrinter{ MessageStyle: &ThemeDefault.ErrorMessageStyle, Prefix: Prefix{ Style: &ThemeDefault.ErrorPrefixStyle, Text: "ERROR", }, } // Fatal returns a PrefixPrinter, which can be used to print text with an "fatal" Prefix. // NOTICE: Fatal terminates the application immediately! Fatal = PrefixPrinter{ MessageStyle: &ThemeDefault.FatalMessageStyle, Prefix: Prefix{ Style: &ThemeDefault.FatalPrefixStyle, Text: "FATAL", }, Fatal: true, } // Description returns a PrefixPrinter, which can be used to print text with a "description" Prefix. Description = PrefixPrinter{ MessageStyle: &ThemeDefault.DescriptionMessageStyle, Prefix: Prefix{ Style: &ThemeDefault.DescriptionPrefixStyle, Text: "Description", }, } )
var ActiveProgressBars []*Progressbar
ActiveProgressBars contains all running progressbars. Generally, there should only be one active Progressbar at a time.
var ( // DefaultBasicText returns a default BasicTextPrinter, which can be used to print text as is. // No default style is present for BasicTextPrinter. DefaultBasicText = BasicTextPrinter{} )
var ( // DefaultHeader returns the printer for a default header text. // Defaults to LightWhite, Bold Text and a Gray DefaultHeader background. DefaultHeader = HeaderPrinter{ TextStyle: &ThemeDefault.HeaderTextStyle, BackgroundStyle: &ThemeDefault.HeaderBackgroundStyle, Margin: 5, } )
var DefaultParagraph = ParagraphPrinter{ MaxWidth: GetTerminalWidth(), }
DefaultParagraph contains the default values for a ParagraphPrinter.
var ( // DefaultProgressbar is the default progressbar. DefaultProgressbar = Progressbar{ Total: 100, LineCharacter: "β", LastCharacter: "β", ElapsedTimeRoundingFactor: time.Second, BarStyle: &ThemeDefault.ProgressbarBarStyle, TitleStyle: &ThemeDefault.ProgressbarTitleStyle, ShowTitle: true, ShowCount: true, ShowPercentage: true, ShowElapsedTime: true, BarFiller: " ", } )
var DefaultSection = SectionPrinter{ Style: ThemeDefault.SectionStyle, Level: 1, TopPadding: 1, BottomPadding: 1, }
DefaultSection is the default section printer.
var DefaultSpinner = Spinner{ Sequence: []string{"β ", " β", " β", "β "}, Style: &ThemeDefault.SpinnerStyle, Delay: time.Millisecond * 200, MessageStyle: ThemeDefault.SpinnerTextStyle, SuccessPrinter: &Success, FailPrinter: &Error, WarningPrinter: &Warning, }
DefaultSpinner is the default spinner.
var DefaultTable = Table{ Style: &ThemeDefault.TableStyle, HeaderStyle: &ThemeDefault.TableHeaderStyle, Separator: " | ", SeparatorStyle: &ThemeDefault.TableSeparatorStyle, }
DefaultTable contains standards, which can be used to print a Table.
var ( // DisableOutput completely disables output from pterm. Can be used in CLI application quiet mode. DisableOutput = false )
var FallbackTerminalHeight = 10
FallbackTerminalHeight is the value used for GetTerminalHeight, if the actual height can not be detected You can override that value if necessary.
var FallbackTerminalWidth = 80
FallbackTerminalWidth is the value used for GetTerminalWidth, if the actual width can not be detected You can override that value if necessary.
var ( // GrayBoxStyle wraps text in a gray box. GrayBoxStyle = NewStyle(BgGray, FgLightWhite) )
var ( // ThemeDefault is the default theme used by PTerm. // If this variable is overwritten, the new value is used as default theme. ThemeDefault = Theme{ PrimaryStyle: Style{FgCyan}, SecondaryStyle: Style{FgLightMagenta}, HighlightStyle: Style{Bold, FgYellow}, InfoMessageStyle: Style{FgLightCyan}, InfoPrefixStyle: Style{FgBlack, BgCyan}, SuccessMessageStyle: Style{FgGreen}, SuccessPrefixStyle: Style{FgBlack, BgGreen}, WarningMessageStyle: Style{FgYellow}, WarningPrefixStyle: Style{FgBlack, BgYellow}, ErrorMessageStyle: Style{FgLightRed}, ErrorPrefixStyle: Style{FgBlack, BgLightRed}, FatalMessageStyle: Style{FgLightRed}, FatalPrefixStyle: Style{FgBlack, BgLightRed}, DescriptionMessageStyle: Style{FgWhite}, DescriptionPrefixStyle: Style{FgLightWhite, BgDarkGray}, ScopeStyle: Style{FgGray}, ProgressbarBarStyle: Style{FgLightCyan}, ProgressbarTitleStyle: Style{FgLightCyan}, HeaderTextStyle: Style{FgLightWhite, Bold}, HeaderBackgroundStyle: Style{BgGray}, SpinnerStyle: Style{FgLightCyan}, SpinnerTextStyle: Style{FgLightWhite}, TableStyle: Style{FgWhite}, TableHeaderStyle: Style{FgLightCyan}, TableSeparatorStyle: Style{FgGray}, SectionStyle: Style{Bold, FgYellow}, } )
Functions ΒΆ
func Fprint ΒΆ added in v0.1.0
Fprint formats using the default formats for its operands and writes to w. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func Fprintln ΒΆ added in v0.1.0
Fprintln formats using the default formats for its operands and writes to w. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func GetTerminalHeight ΒΆ added in v0.1.0
func GetTerminalHeight() int
GetTerminalHeight returns the terminal height of the active terminal.
func GetTerminalSize ΒΆ added in v0.1.0
GetTerminalSize returns the width and the height of the active terminal.
func GetTerminalWidth ΒΆ added in v0.1.0
func GetTerminalWidth() int
GetTerminalWidth returns the terminal width of the active terminal.
func Print ΒΆ
func Print(a ...interface{})
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func Printf ΒΆ
func Printf(format string, a ...interface{})
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func Println ΒΆ
func Println(a ...interface{})
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func Printo ΒΆ added in v0.1.0
func Printo(a ...interface{})
Printo overrides the current line in a terminal. If the current line is empty, the text will be printed like with pterm.Print. To create a new line, which Example: pterm.Printo("Hello, World") time.Sleep(time.Second) pterm.Oprint("Hello, Earth!")
func RemoveColorFromString ΒΆ added in v0.4.0
func RemoveColorFromString(a ...interface{}) string
RemoveColorFromString removes color codes from a string.
func SetDefaultOutput ΒΆ added in v0.3.1
SetDefaultOutput sets the default output of pterm.
func Sprint ΒΆ
func Sprint(a ...interface{}) string
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
Types ΒΆ
type BasicTextPrinter ΒΆ added in v0.6.0
type BasicTextPrinter struct {
Style *Style
}
BasicTextPrinter is the printer used to print the input as-is or as specified by user formatting.
func (*BasicTextPrinter) Print ΒΆ added in v0.6.0
func (p *BasicTextPrinter) Print(a ...interface{}) *TextPrinter
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*BasicTextPrinter) Printf ΒΆ added in v0.6.0
func (p *BasicTextPrinter) Printf(format string, a ...interface{}) *TextPrinter
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func (*BasicTextPrinter) Println ΒΆ added in v0.6.0
func (p *BasicTextPrinter) Println(a ...interface{}) *TextPrinter
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func (BasicTextPrinter) Sprint ΒΆ added in v0.6.0
func (p BasicTextPrinter) Sprint(a ...interface{}) string
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
func (BasicTextPrinter) Sprintf ΒΆ added in v0.6.0
func (p BasicTextPrinter) Sprintf(format string, a ...interface{}) string
Sprintf formats according to a format specifier and returns the resulting string.
func (BasicTextPrinter) Sprintln ΒΆ added in v0.6.0
func (p BasicTextPrinter) Sprintln(a ...interface{}) string
Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.
func (BasicTextPrinter) WithStyle ΒΆ added in v0.6.0
func (p BasicTextPrinter) WithStyle(style *Style) *BasicTextPrinter
WithStyle adds a style to the printer. unlike prefix printer, there is a single style for the message.
type Color ΒΆ
type Color uint8
Color is a number which will be used to color strings in the terminal.
const ( FgBlack Color = iota + 30 FgRed FgGreen FgYellow FgBlue FgMagenta FgCyan FgWhite // FgDefault revert default FG. FgDefault Color = 39 )
Foreground colors. basic foreground colors 30 - 37.
const ( FgDarkGray Color = iota + 90 FgLightRed FgLightGreen FgLightYellow FgLightBlue FgLightMagenta FgLightCyan FgLightWhite // FgGray is an alias of FgDarkGray. FgGray Color = 90 )
Extra foreground color 90 - 97.
const ( BgBlack Color = iota + 40 BgRed BgGreen BgYellow // BgBrown like yellow BgBlue BgMagenta BgCyan BgWhite // BgDefault reverts to the default background. BgDefault Color = 49 )
Background colors. basic background colors 40 - 47.
const ( BgDarkGray Color = iota + 100 BgLightRed BgLightGreen BgLightYellow BgLightBlue BgLightMagenta BgLightCyan BgLightWhite // BgGray is an alias of BgDarkGray. BgGray Color = 100 )
Extra background color 100 - 107.
const ( Reset Color = iota Bold Fuzzy Italic Underscore Blink FastBlink Reverse Concealed Strikethrough )
Option settings.
func (Color) Print ΒΆ
func (c Color) Print(a ...interface{})
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Color.
func (Color) Printf ΒΆ
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Color.
func (Color) Println ΒΆ
func (c Color) Println(a ...interface{})
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Color.
func (Color) Sprint ΒΆ
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string. Input will be colored with the parent Color.
func (Color) Sprintf ΒΆ
Sprintf formats according to a format specifier and returns the resulting string. Input will be colored with the parent Color.
type HeaderPrinter ΒΆ added in v0.0.1
HeaderPrinter contains the data used to craft a header. A header is printed as a big box with text in it. Can be used as title screens or section separator.
func (*HeaderPrinter) Print ΒΆ added in v0.0.1
func (p *HeaderPrinter) Print(a ...interface{}) *TextPrinter
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*HeaderPrinter) Printf ΒΆ added in v0.0.1
func (p *HeaderPrinter) Printf(format string, a ...interface{}) *TextPrinter
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func (*HeaderPrinter) Println ΒΆ added in v0.0.1
func (p *HeaderPrinter) Println(a ...interface{}) *TextPrinter
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func (HeaderPrinter) Sprint ΒΆ added in v0.0.1
func (p HeaderPrinter) Sprint(a ...interface{}) string
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
func (HeaderPrinter) Sprintf ΒΆ added in v0.0.1
func (p HeaderPrinter) Sprintf(format string, a ...interface{}) string
Sprintf formats according to a format specifier and returns the resulting string.
func (HeaderPrinter) Sprintln ΒΆ added in v0.0.1
func (p HeaderPrinter) Sprintln(a ...interface{}) string
Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.
func (HeaderPrinter) WithBackgroundStyle ΒΆ added in v0.1.0
func (p HeaderPrinter) WithBackgroundStyle(style *Style) *HeaderPrinter
WithBackgroundStyle changes the background styling of the header.
func (HeaderPrinter) WithFullWidth ΒΆ added in v0.1.0
func (p HeaderPrinter) WithFullWidth(b ...bool) *HeaderPrinter
WithFullWidth enables full width on a HeaderPrinter.
func (HeaderPrinter) WithMargin ΒΆ added in v0.1.0
func (p HeaderPrinter) WithMargin(margin int) *HeaderPrinter
WithMargin changes the background styling of the header.
func (HeaderPrinter) WithTextStyle ΒΆ added in v0.1.0
func (p HeaderPrinter) WithTextStyle(style *Style) *HeaderPrinter
WithTextStyle returns a new HeaderPrinter with changed
type LivePrinter ΒΆ added in v0.5.0
type LivePrinter interface {
// GenericStart runs Start, but returns a LivePrinter.
// This is used for the interface LivePrinter.
// You most likely want to use Start instead of this in your program.
GenericStart() *LivePrinter
// GenericStop runs Stop, but returns a LivePrinter.
// This is used for the interface LivePrinter.
// You most likely want to use Stop instead of this in your program.
GenericStop() *LivePrinter
}
LivePrinter is a printer which can update it's output live.
type ParagraphPrinter ΒΆ added in v0.5.0
type ParagraphPrinter struct {
MaxWidth int
}
ParagraphPrinter can print paragraphs to a fixed line width. The text will split between words, so that words will stick together. It's like in a book.
func (*ParagraphPrinter) Print ΒΆ added in v0.5.0
func (p *ParagraphPrinter) Print(a ...interface{}) *TextPrinter
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*ParagraphPrinter) Printf ΒΆ added in v0.5.0
func (p *ParagraphPrinter) Printf(format string, a ...interface{}) *TextPrinter
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func (*ParagraphPrinter) Println ΒΆ added in v0.5.0
func (p *ParagraphPrinter) Println(a ...interface{}) *TextPrinter
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func (ParagraphPrinter) Sprint ΒΆ added in v0.5.0
func (p ParagraphPrinter) Sprint(a ...interface{}) string
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
func (ParagraphPrinter) Sprintf ΒΆ added in v0.5.0
func (p ParagraphPrinter) Sprintf(format string, a ...interface{}) string
Sprintf formats according to a format specifier and returns the resulting string.
func (ParagraphPrinter) Sprintln ΒΆ added in v0.5.0
func (p ParagraphPrinter) Sprintln(a ...interface{}) string
Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.
func (ParagraphPrinter) WithMaxWidth ΒΆ added in v0.5.0
func (p ParagraphPrinter) WithMaxWidth(width int) *ParagraphPrinter
WithMaxWidth returns a new ParagraphPrinter with a specific MaxWidth
type Prefix ΒΆ
Prefix contains the data used as the beginning of a printed text via a PrefixPrinter.
type PrefixPrinter ΒΆ
PrefixPrinter is the printer used to print a Prefix.
func (PrefixPrinter) GetFormattedPrefix ΒΆ
func (p PrefixPrinter) GetFormattedPrefix() string
GetFormattedPrefix returns the Prefix as a styled text string.
func (*PrefixPrinter) Print ΒΆ
func (p *PrefixPrinter) Print(a ...interface{}) *TextPrinter
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*PrefixPrinter) Printf ΒΆ
func (p *PrefixPrinter) Printf(format string, a ...interface{}) *TextPrinter
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func (*PrefixPrinter) Println ΒΆ
func (p *PrefixPrinter) Println(a ...interface{}) *TextPrinter
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func (*PrefixPrinter) Sprint ΒΆ
func (p *PrefixPrinter) Sprint(a ...interface{}) string
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
func (PrefixPrinter) Sprintf ΒΆ
func (p PrefixPrinter) Sprintf(format string, a ...interface{}) string
Sprintf formats according to a format specifier and returns the resulting string.
func (PrefixPrinter) Sprintln ΒΆ
func (p PrefixPrinter) Sprintln(a ...interface{}) string
Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.
func (PrefixPrinter) WithFatal ΒΆ added in v0.3.0
func (p PrefixPrinter) WithFatal(b ...bool) *PrefixPrinter
WithFatal sets if the printer should panic after printing. NOTE: The printer will only panic if either PrefixPrinter.Println, PrefixPrinter.Print or PrefixPrinter.Printf is called.
func (PrefixPrinter) WithMessageStyle ΒΆ added in v0.1.0
func (p PrefixPrinter) WithMessageStyle(style Style) *PrefixPrinter
WithMessageStyle adds a custom prefix to the printer.
func (PrefixPrinter) WithPrefix ΒΆ added in v0.1.0
func (p PrefixPrinter) WithPrefix(prefix Prefix) *PrefixPrinter
WithPrefix adds a custom prefix to the printer.
func (PrefixPrinter) WithScope ΒΆ
func (p PrefixPrinter) WithScope(scope Scope) *PrefixPrinter
WithScope adds a scope to the Prefix.
type Progressbar ΒΆ added in v0.2.1
type Progressbar struct {
Title string
Total int
Current int
UpdateDelay time.Duration
LineCharacter string
LastCharacter string
ElapsedTimeRoundingFactor time.Duration
BarFiller string
ShowElapsedTime bool
ShowCount bool
ShowTitle bool
ShowPercentage bool
TitleStyle *Style
BarStyle *Style
IsActive bool
// contains filtered or unexported fields
}
Progressbar shows a progress animation in the terminal.
func (*Progressbar) Add ΒΆ added in v0.2.1
func (p *Progressbar) Add(count int) *Progressbar
Add to current value.
func (Progressbar) GenericStart ΒΆ added in v0.5.0
func (p Progressbar) GenericStart() *LivePrinter
GenericStart runs Start, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Start instead of this in your program.
func (Progressbar) GenericStop ΒΆ added in v0.5.0
func (p Progressbar) GenericStop() *LivePrinter
GenericStop runs Stop, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Stop instead of this in your program.
func (*Progressbar) GetElapsedTime ΒΆ added in v0.2.1
func (p *Progressbar) GetElapsedTime() time.Duration
GetElapsedTime returns the elapsed time, since the progressbar was started.
func (*Progressbar) Increment ΒΆ added in v0.2.1
func (p *Progressbar) Increment() *Progressbar
Increment current value by one.
func (Progressbar) Start ΒΆ added in v0.2.1
func (p Progressbar) Start() *Progressbar
Start the progressbar.
func (*Progressbar) Stop ΒΆ added in v0.2.1
func (p *Progressbar) Stop() *Progressbar
Stop the progressbar.
func (Progressbar) WithBarStyle ΒΆ added in v0.3.0
func (p Progressbar) WithBarStyle(style *Style) *Progressbar
WithBarStyle sets the style of the bar.
func (Progressbar) WithCurrent ΒΆ added in v0.3.0
func (p Progressbar) WithCurrent(current int) *Progressbar
WithCurrent sets the current value of the progressbar.
func (Progressbar) WithElapsedTimeRoundingFactor ΒΆ added in v0.3.0
func (p Progressbar) WithElapsedTimeRoundingFactor(duration time.Duration) *Progressbar
WithElapsedTimeRoundingFactor sets the rounding factor of the elapsed time.
func (Progressbar) WithLastCharacter ΒΆ added in v0.3.0
func (p Progressbar) WithLastCharacter(char string) *Progressbar
WithLastCharacter sets the last character of the progressbar.
func (Progressbar) WithLineCharacter ΒΆ added in v0.3.0
func (p Progressbar) WithLineCharacter(char string) *Progressbar
WithLineCharacter sets the line character of the progressbar.
func (Progressbar) WithShowCount ΒΆ added in v0.3.0
func (p Progressbar) WithShowCount(b ...bool) *Progressbar
WithShowCount sets if the total and current count should be displayed in the progressbar.
func (Progressbar) WithShowElapsedTime ΒΆ added in v0.3.0
func (p Progressbar) WithShowElapsedTime(b ...bool) *Progressbar
WithShowElapsedTime sets if the elapsed time should be displayed in the progressbar.
func (Progressbar) WithShowPercentage ΒΆ added in v0.3.0
func (p Progressbar) WithShowPercentage(b ...bool) *Progressbar
WithShowPercentage sets if the completed percentage should be displayed in the progressbar.
func (Progressbar) WithShowTitle ΒΆ added in v0.3.0
func (p Progressbar) WithShowTitle(b ...bool) *Progressbar
WithShowTitle sets if the title should be displayed in the progressbar.
func (Progressbar) WithTitle ΒΆ added in v0.3.0
func (p Progressbar) WithTitle(name string) *Progressbar
WithTitle sets the name of the progressbar.
func (Progressbar) WithTitleStyle ΒΆ added in v0.3.0
func (p Progressbar) WithTitleStyle(style *Style) *Progressbar
WithTitleStyle sets the style of the title.
func (Progressbar) WithTotal ΒΆ added in v0.3.0
func (p Progressbar) WithTotal(total int) *Progressbar
WithTotal sets the total value of the progressbar.
func (Progressbar) WithUpdateDelay ΒΆ added in v0.3.0
func (p Progressbar) WithUpdateDelay(delay time.Duration) *Progressbar
WithUpdateDelay sets the update delay of the progressbar.
type RGB ΒΆ added in v0.5.1
RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue. https://en.wikipedia.org/wiki/RGB_color_model
func NewRGBFromHEX ΒΆ added in v0.5.1
NewRGBFromHEX converts a HEX and returns a new RGB.
func (RGB) Fade ΒΆ added in v0.5.1
Fade fades one RGB value to another RGB value, by giving the function a minimum, maximum and current value.
func (*RGB) Print ΒΆ added in v0.5.1
func (p *RGB) Print(a ...interface{}) *TextPrinter
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*RGB) Printf ΒΆ added in v0.5.1
func (p *RGB) Printf(format string, a ...interface{}) *TextPrinter
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func (*RGB) Println ΒΆ added in v0.5.1
func (p *RGB) Println(a ...interface{}) *TextPrinter
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func (RGB) Sprint ΒΆ added in v0.5.1
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
type RenderPrinter ΒΆ added in v0.5.0
type RenderPrinter interface {
// Render the XXX to the terminal.
Render()
// Srender returns the rendered string of XXX.
Srender() string
}
RenderPrinter is used to display renderable content. Example for renderable content is a Table.
type Scope ΒΆ
Scope contains the data of the optional scope of a prefix. If it has a text, it will be printed after the Prefix in brackets.
type SectionPrinter ΒΆ added in v0.3.2
SectionPrinter prints a new section title. It can be used to structure longer text, or different chapters of your program.
func (*SectionPrinter) Print ΒΆ added in v0.3.2
func (p *SectionPrinter) Print(a ...interface{}) *TextPrinter
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*SectionPrinter) Printf ΒΆ added in v0.3.2
func (p *SectionPrinter) Printf(format string, a ...interface{}) *TextPrinter
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func (*SectionPrinter) Println ΒΆ added in v0.3.2
func (p *SectionPrinter) Println(a ...interface{}) *TextPrinter
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func (SectionPrinter) Sprint ΒΆ added in v0.3.2
func (p SectionPrinter) Sprint(a ...interface{}) string
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
func (SectionPrinter) Sprintf ΒΆ added in v0.3.2
func (p SectionPrinter) Sprintf(format string, a ...interface{}) string
Sprintf formats according to a format specifier and returns the resulting string.
func (SectionPrinter) Sprintln ΒΆ added in v0.3.2
func (p SectionPrinter) Sprintln(a ...interface{}) string
Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.
func (SectionPrinter) WithBottomPadding ΒΆ added in v0.5.0
func (p SectionPrinter) WithBottomPadding(level int) *SectionPrinter
WithBottomPadding returns a new SectionPrinter with a specific top padding.
func (SectionPrinter) WithLevel ΒΆ added in v0.4.0
func (p SectionPrinter) WithLevel(level int) *SectionPrinter
WithLevel returns a new SectionPrinter with a specific level.
func (SectionPrinter) WithStyle ΒΆ added in v0.4.0
func (p SectionPrinter) WithStyle(style Style) *SectionPrinter
WithStyle returns a new SectionPrinter with a specific style.
func (SectionPrinter) WithTopPadding ΒΆ added in v0.4.0
func (p SectionPrinter) WithTopPadding(level int) *SectionPrinter
WithTopPadding returns a new SectionPrinter with a specific top padding.
type Spinner ΒΆ added in v0.1.0
type Spinner struct {
Text string
Sequence []string
Style *Style
Delay time.Duration
MessageStyle Style
SuccessPrinter TextPrinter
FailPrinter TextPrinter
WarningPrinter TextPrinter
RemoveWhenDone bool
IsActive bool
}
Spinner is a loading animation, which can be used if the progress is unknown. It's an animation loop, which can have a text and supports throwing errors or warnings. A TextPrinter is used to display all outputs, after the spinner is done.
func (*Spinner) Fail ΒΆ added in v0.1.0
func (s *Spinner) Fail(message ...interface{})
Fail displays the fail printer. If no message is given, the text of the spinner will be reused as the default message.
func (*Spinner) GenericStart ΒΆ added in v0.5.0
func (s *Spinner) GenericStart() *LivePrinter
GenericStart runs Start, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Start instead of this in your program.
func (*Spinner) GenericStop ΒΆ added in v0.5.0
func (s *Spinner) GenericStop() *LivePrinter
GenericStop runs Stop, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Stop instead of this in your program.
func (*Spinner) Stop ΒΆ added in v0.1.0
func (s *Spinner) Stop()
Stop terminates the Spinner immediately. The Spinner will not resolve into anything.
func (*Spinner) Success ΒΆ added in v0.1.0
func (s *Spinner) Success(message ...interface{})
Success displays the success printer. If no message is given, the text of the spinner will be reused as the default message.
func (*Spinner) UpdateText ΒΆ added in v0.2.0
UpdateText updates the message of the active spinner. Can be used live.
func (*Spinner) Warning ΒΆ added in v0.1.0
func (s *Spinner) Warning(message ...interface{})
Warning displays the warning printer. If no message is given, the text of the spinner will be reused as the default message.
func (Spinner) WithMessageStyle ΒΆ added in v0.1.0
WithMessageStyle adds a style to the spinner message.
func (Spinner) WithRemoveWhenDone ΒΆ added in v0.3.0
WithRemoveWhenDone removes the spinner after it is done.
func (Spinner) WithSequence ΒΆ added in v0.1.0
WithSequence adds a sequence to the spinner.
type Style ΒΆ
type Style []Color
Style is a collection of colors. Can include foreground, background and styling (eg. Bold, Underscore, etc.) colors.
func (Style) Print ΒΆ
func (s Style) Print(a ...interface{})
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Style.
func (Style) Printf ΒΆ
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Style.
func (Style) Println ΒΆ
func (s Style) Println(a ...interface{})
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Style.
func (Style) Sprint ΒΆ
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string. Input will be colored with the parent Style.
func (Style) Sprintf ΒΆ
Sprintf formats according to a format specifier and returns the resulting string. Input will be colored with the parent Style.
type Table ΒΆ added in v0.5.0
type Table struct {
Style *Style
HasHeader bool
HeaderStyle *Style
Separator string
SeparatorStyle *Style
Data TableData
}
Table is able to render tables.
func (Table) Render ΒΆ added in v0.5.0
func (p Table) Render()
Render prints the Table to the terminal.
func (Table) WithCSVReader ΒΆ added in v0.5.1
WithCSVReader return a new Table with specified Data extracted from CSV.
func (Table) WithHasHeader ΒΆ added in v0.5.0
WithHasHeader returns a new Table, where the first line is marked as a header.
func (Table) WithHeaderStyle ΒΆ added in v0.5.0
WithHeaderStyle returns a new Table with a specific HeaderStyle.
func (Table) WithSeparator ΒΆ added in v0.5.0
WithSeparator returns a new Table with a specific separator.
func (Table) WithSeparatorStyle ΒΆ added in v0.5.0
WithSeparatorStyle returns a new Table with a specific SeparatorStyle.
type TableData ΒΆ added in v0.5.0
type TableData [][]string
TableData is the type that contains the data of a Table.
type TextPrinter ΒΆ added in v0.5.0
type TextPrinter interface {
// Sprint formats using the default formats for its operands and returns the resulting string.
// Spaces are added between operands when neither is a string.
Sprint(a ...interface{}) string
// Sprintln formats using the default formats for its operands and returns the resulting string.
// Spaces are always added between operands and a newline is appended.
Sprintln(a ...interface{}) string
// Sprintf formats according to a format specifier and returns the resulting string.
Sprintf(format string, a ...interface{}) string
// Print formats using the default formats for its operands and writes to standard output.
// Spaces are added between operands when neither is a string.
// It returns the number of bytes written and any write error encountered.
Print(a ...interface{}) *TextPrinter
// Println formats using the default formats for its operands and writes to standard output.
// Spaces are always added between operands and a newline is appended.
// It returns the number of bytes written and any write error encountered.
Println(a ...interface{}) *TextPrinter
// Printf formats according to a format specifier and writes to standard output.
// It returns the number of bytes written and any write error encountered.
Printf(format string, a ...interface{}) *TextPrinter
}
TextPrinter contains methods to print formatted text to the console or return it as a string.
type Theme ΒΆ added in v0.6.0
type Theme struct {
PrimaryStyle Style
SecondaryStyle Style
HighlightStyle Style
InfoMessageStyle Style
InfoPrefixStyle Style
SuccessMessageStyle Style
SuccessPrefixStyle Style
WarningMessageStyle Style
WarningPrefixStyle Style
ErrorMessageStyle Style
ErrorPrefixStyle Style
FatalMessageStyle Style
FatalPrefixStyle Style
DescriptionMessageStyle Style
DescriptionPrefixStyle Style
ScopeStyle Style
ProgressbarBarStyle Style
ProgressbarTitleStyle Style
HeaderTextStyle Style
HeaderBackgroundStyle Style
SpinnerStyle Style
SpinnerTextStyle Style
TableStyle Style
TableHeaderStyle Style
TableSeparatorStyle Style
SectionStyle Style
}
Theme for PTerm. Theme contains every Style used in PTerm. You can create own themes for your application or use one of the existing themes.
func (Theme) WithDescriptionMessageStyle ΒΆ added in v0.6.0
WithDescriptionMessageStyle returns a new theme with overridden value.
func (Theme) WithDescriptionPrefixStyle ΒΆ added in v0.6.0
WithDescriptionPrefixStyle returns a new theme with overridden value.
func (Theme) WithErrorMessageStyle ΒΆ added in v0.6.0
WithErrorMessageStyle returns a new theme with overridden value.
func (Theme) WithErrorPrefixStyle ΒΆ added in v0.6.0
WithErrorPrefixStyle returns a new theme with overridden value.
func (Theme) WithFatalMessageStyle ΒΆ added in v0.6.0
WithFatalMessageStyle returns a new theme with overridden value.
func (Theme) WithFatalPrefixStyle ΒΆ added in v0.6.0
WithFatalPrefixStyle returns a new theme with overridden value.
func (Theme) WithHighlightStyle ΒΆ added in v0.6.0
WithHighlightStyle returns a new theme with overridden value.
func (Theme) WithInfoMessageStyle ΒΆ added in v0.6.0
WithInfoMessageStyle returns a new theme with overridden value.
func (Theme) WithInfoPrefixStyle ΒΆ added in v0.6.0
WithInfoPrefixStyle returns a new theme with overridden value.
func (Theme) WithPrimaryStyle ΒΆ added in v0.6.0
WithPrimaryStyle returns a new theme with overridden value.
func (Theme) WithSecondaryStyle ΒΆ added in v0.6.0
WithSecondaryStyle returns a new theme with overridden value.
func (Theme) WithSuccessMessageStyle ΒΆ added in v0.6.0
WithSuccessMessageStyle returns a new theme with overridden value.
func (Theme) WithSuccessPrefixStyle ΒΆ added in v0.6.0
WithSuccessPrefixStyle returns a new theme with overridden value.
func (Theme) WithWarningMessageStyle ΒΆ added in v0.6.0
WithWarningMessageStyle returns a new theme with overridden value.
func (Theme) WithWarningPrefixStyle ΒΆ added in v0.6.0
WithWarningPrefixStyle returns a new theme with overridden value.
Source Files
ΒΆ
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
_examples
|
|
|
demo
command
|
|
|
header
command
|
|
|
header-custom
command
|
|
|
override-default-printer
command
|
|
|
paragraph
command
|
|
|
paragraph-custom
command
|
|
|
print-basic-text
command
|
|
|
print-color-fade
command
|
|
|
print-color-rgb
command
|
|
|
print-with-color
command
|
|
|
progressbar
command
|
|
|
section
command
|
|
|
spinner
command
|
|
|
table
command
|
|
|
theme
command
|
|
