Documentation
¶
Index ¶
- Variables
- func RenderCommandHelp(cmd *cobra.Command) string
- func RenderInfo(message string) string
- func RenderSuccess(message string) string
- func RenderWarning(message string) string
- func RunConfirm(prompt string, initialValue bool) (bool, error)
- func RunTextInput(prompt string, placeholder string, initialValue string, validate Validator) (string, error)
- type Option
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = errors.New("prompt cancelled")
ErrCancelled is returned when the user exits an interactive prompt.
Functions ¶
func RenderCommandHelp ¶
RenderCommandHelp renders a styled help view for Cobra commands.
func RenderInfo ¶
RenderInfo renders an informational message.
func RenderSuccess ¶
RenderSuccess renders a success message.
func RenderWarning ¶
RenderWarning renders a warning message.
func RunConfirm ¶
RunConfirm renders a simple yes/no prompt.
Types ¶
Click to show internal directories.
Click to hide internal directories.