Documentation
¶
Overview ¶
Package terminal handles all user-facing I/O: status messages, prompts, and error formatting. Internal packages must never write to stdout/stderr directly — they return errors, and this package handles presentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Confirm asks a yes/no question on stdout and reads the answer from stdin. Returns defaultYes when the user presses Enter without typing anything.
func Fatal ¶
Fatal prints an error to stderr and exits with code 1. Only cmd/ned should call this — internal packages must return errors instead.
func PromptPassword ¶
PromptPassword writes prompt and reads a password without echoing characters. Uses golang.org/x/term on real terminals, falls back to plain Scanln on non-TTY input (pipes, CI, scripted use).
Types ¶
This section is empty.