Documentation
¶
Overview ¶
Package ui provides terminal UI components for the Skills CLI.
Index ¶
- func IsStdinTTY() bool
- func IsStdoutTTY() bool
- func IsTTY(w io.Writer) bool
- func NoColor() bool
- type Output
- func (o *Output) Bold(msg string)
- func (o *Output) BoldText(text string) string
- func (o *Output) Emphasis(msg string)
- func (o *Output) EmphasisText(text string) string
- func (o *Output) Error(msg string)
- func (o *Output) ErrorItem(item string)
- func (o *Output) ErrorText(text string) string
- func (o *Output) Header(text string)
- func (o *Output) Info(msg string)
- func (o *Output) IsSilent() bool
- func (o *Output) KeyValue(key, value string)
- func (o *Output) List(items []string)
- func (o *Output) ListItem(prefix, item string)
- func (o *Output) Muted(msg string)
- func (o *Output) MutedText(text string) string
- func (o *Output) Newline()
- func (o *Output) Printf(format string, args ...interface{})
- func (o *Output) Println(args ...interface{})
- func (o *Output) PrintlnAlways(args ...interface{})
- func (o *Output) Section(title string)
- func (o *Output) SetSilent(silent bool)
- func (o *Output) StyledText(style func(theme.Styles) fmt.Stringer, text string) string
- func (o *Output) SubHeader(text string)
- func (o *Output) Success(msg string)
- func (o *Output) SuccessItem(item string)
- func (o *Output) SuccessText(text string) string
- func (o *Output) Theme() theme.Theme
- func (o *Output) Warning(msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output provides styled terminal output.
func (*Output) EmphasisText ¶
EmphasisText returns emphasis-styled text.
func (*Output) Println ¶
func (o *Output) Println(args ...interface{})
Println prints a line to stdout.
func (*Output) PrintlnAlways ¶
func (o *Output) PrintlnAlways(args ...interface{})
PrintlnAlways prints even in silent mode.
func (*Output) StyledText ¶
StyledText returns styled text without printing.
func (*Output) SuccessItem ¶
SuccessItem prints a success list item.
func (*Output) SuccessText ¶
SuccessText returns success-styled text.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package components provides interactive UI components for the Skills CLI.
|
Package components provides interactive UI components for the Skills CLI. |
|
Package theme provides theming support for the Skills CLI UI.
|
Package theme provides theming support for the Skills CLI UI. |
Click to show internal directories.
Click to hide internal directories.