mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Add --delete for interactive removal of entries (#698)
* Add --delete for interactive removal of entries * Add inquirer dependency for fancy prompting * Fix some minor style issues * Fix #434 * Use PyInquirer instead of inquirer for Windows compatibility * Add WIP (broken) test * Change deletion interface to be more basic * Update environment.py Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
This commit is contained in:
parent
d4a0895163
commit
f4fca3e5a4
5 changed files with 54 additions and 1 deletions
|
@ -93,3 +93,17 @@ Feature: Basic reading and writing to a journal
|
|||
2013-06-10 15:40 Life is good.
|
||||
"""
|
||||
And we should get no error
|
||||
|
||||
# The input for this test is <SPACE><ENTER>y
|
||||
Scenario: --delete flag allows deletion of single entry
|
||||
Given we use the config "deletion.yaml"
|
||||
When we run "jrnl --delete"
|
||||
And we type " "
|
||||
And we type
|
||||
"""
|
||||
|
||||
y
|
||||
"""
|
||||
When we run "jrnl -on 2019-10-29 -s"
|
||||
Then the output should not contain "2019-10-29 11:11 First entry."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue