Documentation
¶
Index ¶
- Variables
- func ConfirmPrompt(label string, helpMessage string, defaultVal bool, disableClear bool) bool
- func Exit()
- func InputPromptWithResponse(label string, defaultVal string, disableClear bool) string
- func Log(e interface{}, msg string, extra interface{})
- func OhNo(msg string)
- func PleaseHold(msg string, extra interface{})
- func RenderMarkdown(body string) string
- func RenderTable(header table.Row, rows []table.Row)
- func SelectPromptWithResponse(label string, options []string, defaultValue interface{}, disableClear bool) string
- func SideBySideTable(rows []table.Row)
- func TextEditorInputAndSave(label string, defaultText string, editor string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Spin = spinner.New(spinner.CharSets[9], 100*time.Millisecond)
Spin is a spinner used to indicate a pending process
Functions ¶
func ConfirmPrompt ¶
ConfirmPrompt prompts the user for a yes/no response to a question, records then returns their response
func InputPromptWithResponse ¶
InputPromptWithResponse accepts a user's typed input to a question as a response
func Log ¶
func Log(e interface{}, msg string, extra interface{})
Log is a logging helper that allows custom input with the emoji
func PleaseHold ¶
func PleaseHold(msg string, extra interface{})
PleaseHold is a logging helper for indicating active processes
func RenderMarkdown ¶
RenderMarkdown accepts a markdown formatted string and renders it in the terminal
func RenderTable ¶
RenderTable outputs data into a table
func SelectPromptWithResponse ¶
func SelectPromptWithResponse(label string, options []string, defaultValue interface{}, disableClear bool) string
SelectPromptWithResponse creates a dropdown selection prompt and records the user's choice
func SideBySideTable ¶
SideBySideTable is used for displaying information
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.