Documentation
¶
Index ¶
- func Ask(logger logger.Logger, title string, defaultValue bool) bool
- func Body(text string) string
- func Bold(text string) string
- func ClearScreen()
- func Command(cmd string, args ...string) string
- func Directory(dir string, args ...string) string
- func Input(logger logger.Logger, title string, description string) string
- func InputWithPlaceholder(logger logger.Logger, title string, description string, placeholder string) string
- func InputWithValidation(logger logger.Logger, title string, description string, maxLength int, ...) string
- func Link(url string, args ...any) string
- func Logo()
- func MaxWidth(text string, width int) string
- func MultiSelect(logger logger.Logger, title string, description string, items []Option) []string
- func Muted(text string) string
- func PadLeft(str string, length int, pad string) string
- func PadRight(str string, length int, pad string) string
- func Padding(text string) string
- func Paragraph(text string, lines ...string) string
- func Password(logger logger.Logger, title string, description string) string
- func Secondary(text string) string
- func Select(logger logger.Logger, title string, description string, items []Option) string
- func ShowBanner(title string, body string, clearScreen bool)
- func ShowLock(msg string, args ...any)
- func ShowSpinner(logger logger.Logger, title string, action func())
- func ShowSuccess(msg string, args ...any)
- func ShowWarning(msg string, args ...any)
- func Table(headers []string, rows [][]string)
- func Text(val string) string
- func Title(text string) string
- func TitleColor() lipgloss.AdaptiveColor
- func WaitForAnyKey()
- func Warning(text string) string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearScreen ¶
func ClearScreen()
ClearScreen clears the screen and moves the cursor to the top left corner
func InputWithPlaceholder ¶
func InputWithValidation ¶
func MultiSelect ¶
MultiSelect will display a multi-select list of items and return the selected items
func ShowBanner ¶
func ShowSpinner ¶
ShowSpinner will display a spinner while the action is being performed
func ShowSuccess ¶
func ShowWarning ¶
func TitleColor ¶
func TitleColor() lipgloss.AdaptiveColor
func WaitForAnyKey ¶ added in v0.0.30
func WaitForAnyKey()
Types ¶
Click to show internal directories.
Click to hide internal directories.