Documentation
¶
Overview ¶
Package confirm implements the interactive yes/no confirmation prompt used before destructive CLI operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prompt ¶
Prompt writes prompt to w, then reads a single line from r and reports whether the answer was an affirmative "y" or "yes" (case-insensitive, surrounding whitespace trimmed). Any other answer — including empty input from a bare Enter press — is treated as "no", matching the conventional "y/N" default-to-no prompt style.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.