More refactoring of cli.py

break up code from cli.py (now in jrnl.py) up into smaller functions
get rid of export mode
move --encrypt and --decrypt to commands.py
clean up the help screen even more
update flag name for import
This commit is contained in:
Jonathan Wren 2020-07-25 18:07:27 -07:00
parent 6f71c98e13
commit 38b78b1d1f
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
7 changed files with 450 additions and 273 deletions

View file

@ -180,7 +180,7 @@ Feature: Basic reading and writing to a journal
And the journal should contain "Life is good."
But the journal should not contain "I have an @idea"
And the journal should not contain "I met with"
When we run "jrnl --import -i features/journals/tags.journal"
When we run "jrnl --import --file features/journals/tags.journal"
Then the journal should contain "My first entry."
And the journal should contain "Life is good."
And the journal should contain "PROFIT!"
@ -191,10 +191,11 @@ Feature: Basic reading and writing to a journal
And the journal should contain "Life is good."
But the journal should not contain "I have an @idea"
And the journal should not contain "I met with"
When we run "jrnl --import -i features/journals/tags.journal" and pipe
When we run "jrnl --import --file features/journals/tags.journal" and pipe
"""
[2020-07-05 15:00] I should not exist!
"""
Then the journal should contain "My first entry."
And the journal should contain "PROFIT!"
But the journal should not contain "I should not exist!"