summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-19 23:14:30 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-19 23:14:30 +0100
commitcc4da2237f5fab45ac22563f50a14f7861212693 (patch)
tree9500a17f0e7d356363d4108ee3aece4b4764b1c0 /share
parente762e23a9ac7b36c6abfc8c45d1b48407263007f (diff)
downloadsubplot-cc4da2237f5fab45ac22563f50a14f7861212693.tar.gz
subplotlib: Add running in a subdir to runcmd
This adds the bindings and step implementations for running commands in a directory off the datadir. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'share')
-rw-r--r--share/rust/lib/runcmd.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/rust/lib/runcmd.yaml b/share/rust/lib/runcmd.yaml
index 0a635c9..fc2db6b 100644
--- a/share/rust/lib/runcmd.yaml
+++ b/share/rust/lib/runcmd.yaml
@@ -12,10 +12,18 @@
regex: true
function: subplotlib::steplibrary::runcmd::run
+- when: I run, in (?P<dirname>\S+), (?P<argv0>\S+)(?P<args>.*)
+ regex: true
+ function: subplotlib::steplibrary::runcmd::run_in
+
- when: I try to run (?P<argv0>\S+)(?P<args>.*)
regex: true
function: subplotlib::steplibrary::runcmd::try_to_run
+- when: I try to run, in (?P<dirname>\S+), (?P<argv0>\S+)(?P<args>.*)
+ regex: true
+ function: subplotlib::steplibrary::runcmd::try_to_run_in
+
# Steps to examine exit code of latest command.
- then: exit code is {exit}