Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDestructionCanceled = errors.New("destruction canceled by user")
ErrDestructionCanceled is returned when the user does not confirm destruction.
Functions ¶
func ConfirmDestruction ¶
ConfirmDestruction prompts the user to type projectName to confirm. It writes the prompt to w and reads a response line from r. Returns nil if the typed string matches projectName exactly. Returns ErrDestructionCanceled if the input does not match or if r is exhausted (EOF).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.