Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71a232d0f7 |
No files matched your search
+1205
-3
File diff suppressed because it is too large.
Load diff
@@ -185,10 +185,9 @@ func (v *Vaultik) printlnStdout(args ...any) {
|
||||
_, _ = fmt.Fprintln(v.Stdout, args...)
|
||||
}
|
||||
|
||||
// ErrNotConfirmed is returned when a confirmation prompt gets any answer
|
||||
// but the one it asks for (`y` or `Y`, or `yes` for `database delete`), or
|
||||
// stdin ends first. Nothing the prompt asked about is deleted, and the
|
||||
// command exits non-zero.
|
||||
// ErrNotConfirmed is returned when the operator answers a confirmation
|
||||
// prompt with anything but yes, or stdin ends before an answer. Nothing
|
||||
// the prompt asked about is deleted, and the command exits non-zero.
|
||||
var ErrNotConfirmed = errors.New("deletion not confirmed")
|
||||
|
||||
// scanStdin reads a line of input from stdin.
|
||||
|
||||
Reference in new issue
Block a user