mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 13:38:31 +02:00
ask for password before adding entry (#799)
This commit is contained in:
parent
15c52d7ed1
commit
c34a123c2b
1 changed files with 7 additions and 7 deletions
14
jrnl/cli.py
14
jrnl/cli.py
|
@ -345,6 +345,13 @@ def run(manual_args=None):
|
||||||
else:
|
else:
|
||||||
_exit_multiline_code = "press Ctrl+D"
|
_exit_multiline_code = "press Ctrl+D"
|
||||||
|
|
||||||
|
# This is where we fi±nally open the journal!
|
||||||
|
try:
|
||||||
|
journal = open_journal(journal_name, config)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print("[Interrupted while opening journal]", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if mode_compose and not args.text:
|
if mode_compose and not args.text:
|
||||||
if not sys.stdin.isatty():
|
if not sys.stdin.isatty():
|
||||||
# Piping data into jrnl
|
# Piping data into jrnl
|
||||||
|
@ -376,13 +383,6 @@ def run(manual_args=None):
|
||||||
else:
|
else:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# This is where we finally open the journal!
|
|
||||||
try:
|
|
||||||
journal = open_journal(journal_name, config)
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
print("[Interrupted while opening journal]", file=sys.stderr)
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# Import mode
|
# Import mode
|
||||||
if mode_import:
|
if mode_import:
|
||||||
plugins.get_importer(args.import_).import_(journal, args.input)
|
plugins.get_importer(args.import_).import_(journal, args.input)
|
||||||
|
|
Loading…
Add table
Reference in a new issue