diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-07-20 07:51:07 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-07-20 07:51:07 +0000 |
commit | d73806f722113116d7a5b7886df2b7d5ccb34cda (patch) | |
tree | 631b6ba9e8868b07c9447da90c002eac200e0801 /jt.md | |
parent | da1826ddfb71a0596b09e04de10b33b9d1e60c7d (diff) | |
parent | 86050e18b21181a4006fd1a5b872c792e7900683 (diff) | |
download | jt2-d73806f722113116d7a5b7886df2b7d5ccb34cda.tar.gz |
Merge branch 'remove' into 'main'
feat: add command to remove a draft
Closes #12
See merge request larswirzenius/jt!21
Diffstat (limited to 'jt.md')
-rw-r--r-- | jt.md | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -231,6 +231,36 @@ then there are no uncommitted changes in jrnl +## Remove a draft + +Verify that we can remove a draft, and then create a new one. + +~~~scenario +given an installed jt + +when I run jt2 --dirname jrnl init default "My test journal" +then command is successful +and there are no drafts in jrnl +and there are no journal entries in jrnl + +when I run jt2 --editor=none --dirname=jrnl new "Hulabaloo" +then command is successful +and there is one draft in jrnl +and draft 0 in jrnl contains "Hulabaloo" +and draft 0 in jrnl contains "!meta date=" + +when I run jt2 --dirname=jrnl remove 0 +then command is successful +and there are no drafts in jrnl +and there are no journal entries in jrnl + +when I run jt2 --editor=none --dirname=jrnl new "Abracadabra" +then command is successful +and there is one draft in jrnl +and draft 0 in jrnl contains "Abracadabra" +and draft 0 in jrnl contains "!meta date=" +~~~ + ## Override template for new journal entries Verify that we can have a custom template for new journal entries. |