diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-25 01:13:30 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-25 01:13:30 +0200 |
commit | 0d18478b7471f347510a61e9361ab271d3b40abf (patch) | |
tree | 95a71a10af7e733d01e254585531dd658c0e7517 | |
parent | 77b60223fdc2af9ebcb39f563fee6f7b21294d27 (diff) |
Add workflow and substep snippets
-rw-r--r-- | fnl/plugins/snippets/org.fnl | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/fnl/plugins/snippets/org.fnl b/fnl/plugins/snippets/org.fnl index a2b2e46..0887821 100644 --- a/fnl/plugins/snippets/org.fnl +++ b/fnl/plugins/snippets/org.fnl @@ -8,6 +8,38 @@ fmt fmt.fmt] (ls.add_snippets :org [(s :be - (fmt "#+begin_src {}\n{}\n#+end_src" [(i 1) (i 2)]))])))) + (fmt "#+begin_src {}\n{}\n#+end_src" [(i 1) (i 2)])) + (s :wf + (fmt "workflow \"{}\" = + input: {} + output (on success): + {} + output (on error): + {} + + // step {} + do {} + {} + " + [(i 1) (i 2) (i 3) (i 4) (i 5) (i 6) (i 7)])) + (s :st + (fmt " + // step {} + do {} + If {}: + {} + + " + [(i 1) (i 2) (i 3) (i 4)])) + (s :ss + (fmt " +substep \"{}\" = + input: {} + output: {} + dependencies: {} + + {} + " + [(i 1) (i 2) (i 3) (i 4) (i 5)]))])))) {: add-snippets} |