diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-15 09:41:20 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-20 08:44:42 +0300 |
commit | 02c53afea1ec6c6ae5060e01f908497a01f03981 (patch) | |
tree | 99b0dcd07c7826135fe331779f1e927595de3f0e /subplot/jt.yaml | |
parent | b3bcb11938f7bebdc15eef8fdb1e2267d39b2818 (diff) | |
download | jt2-02c53afea1ec6c6ae5060e01f908497a01f03981.tar.gz |
feat: create new draft, publish it
Diffstat (limited to 'subplot/jt.yaml')
-rw-r--r-- | subplot/jt.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/subplot/jt.yaml b/subplot/jt.yaml index 77b8c82..5ed6ed3 100644 --- a/subplot/jt.yaml +++ b/subplot/jt.yaml @@ -8,9 +8,36 @@ - when: I invoke jt is-journal {dirname} function: run_jt_is_journal +- when: I invoke jt new "{title:text}" --editor=none --dirname={dirname} + function: run_jt_new + +- when: I invoke jt finish --dirname={dirname} + function: run_jt_finish + +- when: I edit draft {draftno} in {dirname} to also contain "{text}" + function: edit_draft + - then: directory {dirname} exists function: is_directory - then: output contains "(?P<pattern>.*)" regex: true function: output_contains + +- then: there are no drafts in {dirname} + function: journal_has_no_drafts + +- then: there is one draft in {dirname} + function: journal_has_one_draft + +- then: draft {draftno} in {dirname} contains "{pattern}" + function: draft_contains_string + +- then: there are no journal entries in {dirname} + function: journal_has_no_entries + +- then: there is one journal entry in {dirname}, at {variable} + function: journal_has_one_entry + +- then: file <{variable}> contains "{pattern}" + function: file_contains |