summaryrefslogtreecommitdiff
path: root/tests/subplots/common/runcmd.subplot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-09-03 13:47:16 +0300
committerLars Wirzenius <liw@liw.fi>2022-09-06 07:24:31 +0300
commit765b2e1d4d94b2274de28d4efd24bfe77e8d93ac (patch)
treea7c22c35da5811f19fa02772ecc6498d87d63030 /tests/subplots/common/runcmd.subplot
parentc230684f3bab80154d5224d4f2f71eafd00fd100 (diff)
downloadsubplot-765b2e1d4d94b2274de28d4efd24bfe77e8d93ac.tar.gz
feat! read document metadata from a YAML file
This is a huge change all in one commit, sorry. However, as it changes a fundamental part of the command line interface (namely, what constitutes as the input file), there doesn't seem a way to break this into a tidy series of small commits. Most of the diff is in subplot.md, where every scenario that invokes Subplot needs multiple changes, thus touching much of the file. The overall change is that where we previously had document metadata in embedded YAML in the Markdown file, we now have it in a separate YAML file. The Markdown file is named in the YAML file. We still parse the Markdown with Pandoc for everything, except codegen. Switching from Pandoc to pulldown_cmark for parsing will be another big change that I didn't want to include in this huge change set. Sponsored-by: author
Diffstat (limited to 'tests/subplots/common/runcmd.subplot')
-rw-r--r--tests/subplots/common/runcmd.subplot15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/subplots/common/runcmd.subplot b/tests/subplots/common/runcmd.subplot
new file mode 100644
index 0000000..e30e5a8
--- /dev/null
+++ b/tests/subplots/common/runcmd.subplot
@@ -0,0 +1,15 @@
+title: Acceptance criteria for the lib/runcmd Subplot library
+author: The Subplot project
+markdowns:
+- runcmd.md
+bindings:
+- lib/runcmd.yaml
+- runcmd_test.yaml
+- lib/files.yaml
+impls:
+ python:
+ - lib/runcmd.py
+ - runcmd_test.py
+ - lib/files.py
+ rust:
+ - runcmd_test.rs