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...)
|
_, _ = fmt.Fprintln(v.Stdout, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrNotConfirmed is returned when a confirmation prompt gets any answer
|
// ErrNotConfirmed is returned when the operator answers a confirmation
|
||||||
// but the one it asks for (`y` or `Y`, or `yes` for `database delete`), or
|
// prompt with anything but yes, or stdin ends before an answer. Nothing
|
||||||
// stdin ends first. Nothing the prompt asked about is deleted, and the
|
// the prompt asked about is deleted, and the command exits non-zero.
|
||||||
// command exits non-zero.
|
|
||||||
var ErrNotConfirmed = errors.New("deletion not confirmed")
|
var ErrNotConfirmed = errors.New("deletion not confirmed")
|
||||||
|
|
||||||
// scanStdin reads a line of input from stdin.
|
// scanStdin reads a line of input from stdin.
|
||||||
|
|||||||
Reference in new issue
Block a user