summaryrefslogtreecommitdiff
path: root/subplot/jt.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-26 09:00:31 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-26 11:27:51 +0200
commitd68ed957f785f4e6969a213e05e4a6bbfc7c391a (patch)
tree27f29481bb21112449802bd071592e8e143852f4 /subplot/jt.yaml
parent2288d53ce4e55e28cf8f17e3cd06cc5905b88223 (diff)
downloadjt2-d68ed957f785f4e6969a213e05e4a6bbfc7c391a.tar.gz
feat! rewrite code
This started out as a change to re-do the command line parsing. I ended up rewriting everything, and failed to do it in a way that could be rebased into a sensible series of small commits.
Diffstat (limited to 'subplot/jt.yaml')
-rw-r--r--subplot/jt.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/subplot/jt.yaml b/subplot/jt.yaml
index 6d10a3a..9c0983c 100644
--- a/subplot/jt.yaml
+++ b/subplot/jt.yaml
@@ -1,3 +1,6 @@
+- given: "an installed jt"
+ function: install_jt
+
- given: "an executable script {filename}"
function: create_script
@@ -24,9 +27,6 @@
- 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
@@ -46,5 +46,5 @@
- then: there is one journal entry in {dirname}, at {variable}
function: journal_has_one_entry
-- then: file <{variable}> contains "{pattern:text}"
+- then: journal entry <{variable}> contains "{pattern:text}"
function: file_contains