From d95ebc7dcedf2859b30bc07c1bf1178b0aaed9a1 Mon Sep 17 00:00:00 2001 From: PeterKnealeCMRI <130641023+PeterKnealeCMRI@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:04:48 +1100 Subject: [PATCH] Add "script:" before bash script section in snippet While it appears to work fine, the vs code extension for nextflow indicates this is not correct. Signed-off-by: PeterKnealeCMRI <130641023+PeterKnealeCMRI@users.noreply.github.com> --- docs/snippets/your-first-script.nf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/snippets/your-first-script.nf b/docs/snippets/your-first-script.nf index 0217cae8fc..28db2c25bc 100644 --- a/docs/snippets/your-first-script.nf +++ b/docs/snippets/your-first-script.nf @@ -4,6 +4,7 @@ process splitLetters { output: path 'chunk_*' + script: """ printf '${params.str}' | split -b 6 - chunk_ """ @@ -16,6 +17,7 @@ process convertToUpper { output: stdout + script: """ cat $x | tr '[a-z]' '[A-Z]' """