Add order feature

Use -desc to order entries descendantly by date.
This commit is contained in:
Juan Pablo Garcia 2017-12-07 14:59:39 -04:00
parent 2732ae5419
commit 60ce0a03ea
4 changed files with 24 additions and 4 deletions

View file

@ -53,6 +53,18 @@ Feature: Basic reading and writing to a journal
When we run "jrnl -on 2013-06-10 --short"
Then the output should be "2013-06-10 15:40 Life is good."
Scenario: -desc displays the entries descendantly by date
Given we use the config "basic.yaml"
When we run "jrnl --desc"
Then the output should be
"""
2013-06-10 15:40 Life is good.
| But I'm better.
2013-06-09 15:39 My first entry.
| Everything is alright
"""
Scenario: -s displays the short version of entries (only the title)
Given we use the config "basic.yaml"
When we run "jrnl -on 2013-06-10 -s"