Documentation
¶
Overview ¶
internal/prompt/prompt.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Confirm prompts the user for a yes/no confirmation. Returns the defaultValue if stdin is not a TTY.
func EditInEditor ¶
EditInEditor opens the given text in the user's preferred editor and returns the edited content. Uses $VISUAL, then $EDITOR, then falls back to "vi". If stdin is not a TTY, returns the original text without editing.
func Input ¶
Input prompts the user for a single line of input with a default value. If the user enters nothing (just presses Enter), the default is returned. If stdin is not a TTY, the default is returned without prompting.
func IsInteractive ¶
func IsInteractive() bool
IsInteractive returns true if stdin is connected to a terminal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.