Skip to content

Commit 3361b48

Browse files
committed
Updated example for run-script-example
Signed-off-by: hiren <20088337+hirenr@users.noreply.github.com>
1 parent 91af9cb commit 3361b48

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

dsl-reference.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,19 +994,21 @@ Enables the execution of custom scripts or code within a workflow, empowering wo
994994

995995
```yaml
996996
document:
997-
dsl: '1.0.2'
998-
namespace: test
997+
dsl: 1.0.2
998+
namespace: examples
999999
name: run-script-example
1000-
version: '0.1.0'
1000+
version: 1.0.0
10011001
do:
10021002
- runScript:
10031003
run:
10041004
script:
1005-
language: js
1005+
language: javascript
10061006
arguments:
1007-
greetings: Hello, world!
1008-
code: >
1009-
console.log(greetings)
1007+
- hello
1008+
- world
1009+
code: |
1010+
const [_, __, arg0, arg1] = process.argv;
1011+
console.log('arg > ', arg0, arg1)
10101012
```
10111013

10121014
##### Shell Process

0 commit comments

Comments
 (0)