From 0d18478b7471f347510a61e9361ab271d3b40abf Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 25 Jul 2024 01:13:30 +0200 Subject: Add workflow and substep snippets --- fnl/plugins/snippets/org.fnl | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'fnl/plugins') 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} -- cgit v1.2.3-70-g09d2