summaryrefslogtreecommitdiff
path: root/stdin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-18 01:29:07 -0600
committerJeff Carr <[email protected]>2024-12-18 01:29:07 -0600
commit5c156fa55e2ee7980a6bbfc9a0a7df5b8984aef0 (patch)
tree6676861bb505351bd2ab375a7036f0a59ebc14d9 /stdin.go
parent4879befeb3ad89f0357f995413afcab904296599 (diff)
add --purge to get rid of all notesv0.0.19
Diffstat (limited to 'stdin.go')
-rw-r--r--stdin.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/stdin.go b/stdin.go
index a28e3fa..51c0bcd 100644
--- a/stdin.go
+++ b/stdin.go
@@ -24,10 +24,7 @@ func showOptions(b bool, s []string) {
}
// if b == true, default is to continue with 'Y'
-func simpleStdin(b bool, s []string) {
- if argv.Auto {
- return
- }
+func simpleStdinOld(b bool, s []string) {
err := errors.New("user cancelled via stdin")
showOptions(b, s)
scanner := bufio.NewScanner(os.Stdin)