Skip to main content

Module confirm

Module confirm 

Source
Expand description

Interactive confirmation for destructive commands, and secret input.

Destructive commands (delete) ask for an explicit y before acting. --yes skips the prompt. When stdin is not a terminal and --yes was not passed, the command fails instead of prompting: a prompt nobody can answer would hang a CI job forever, and silently proceeding would make a forgotten --yes destroy data without a trace.

Functionsยง

confirm
Ask for confirmation on stdin unless assume_yes is set.
resolve_secret_value
Resolve a sensitive value from an argument, falling back to stdin.