Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PromptOutputEnvironment selects the terminal stream used by interactive prompts. PromptOutputEnvironment = "SITECTL_PROMPT_OUTPUT" // PromptOutputStderr keeps stdout available for machine-readable protocols such as plugin RPC. PromptOutputStderr = "stderr" )
Variables ¶
This section is empty.
Functions ¶
func CanPromptInteractively ¶ added in v1.7.0
func CanPromptInteractively() bool
func PromptChoice ¶
func PromptChoice(opts ChoicePromptOptions) (string, bool, error)
func PromptTerminalWidth ¶ added in v1.7.0
func PromptText ¶
func PromptText(opts TextPromptOptions) (string, bool, error)
Types ¶
type ChoicePromptOptions ¶
type TextPromptOptions ¶
Click to show internal directories.
Click to hide internal directories.