Documentation
¶
Index ¶
- type StyleSet
- type UI
- func (ui *UI) AskConfirm(label string, def bool) (bool, error)
- func (ui *UI) AskInput(label, def string) (string, error)
- func (ui *UI) AskMultiSelect(label string, options []string, defaults []string) ([]string, error)
- func (ui *UI) AskPassword(label string) (string, error)
- func (ui *UI) AskSelect(label string, options []string, def string) (string, error)
- func (ui *UI) Errorf(format string, args ...any)
- func (ui *UI) Infof(format string, args ...any)
- func (ui *UI) Panel(title, body string)
- func (ui *UI) Successf(format string, args ...any)
- func (ui *UI) Warnf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StyleSet ¶
type StyleSet struct {
Success lipgloss.Style
Warn lipgloss.Style
Error lipgloss.Style
Info lipgloss.Style
Panel lipgloss.Style
Title lipgloss.Style
}
StyleSet holds the base styles used across Nimbus CLI commands.
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
UI provides styled output helpers for CLI commands.
func (*UI) AskConfirm ¶
AskConfirm prompts for a yes/no confirmation.
func (*UI) AskMultiSelect ¶
AskMultiSelect prompts for a multi-selection (checkbox list).
func (*UI) AskPassword ¶
AskPassword prompts for a password (input hidden).
Click to show internal directories.
Click to hide internal directories.