github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0063.yml (about) 1 doc_meta: | 2 folder: flow-controll 3 title: use pause 4 head: | 5 Showcase you can use pause during the execution of the task steps 6 7 sections: 8 - title: Pause and inspect for debugging 9 content: | 10 It is good that we can have an option to pause the workflow and inspect the runtime values to understand what is not working. You will be prompted with option to continue, to quit or inspect the runtime vars 11 12 Note that pause support generic step rather than just shell func, it works for cmd func too in this demo 13 14 ``` 15 Enter Value For pause action to continue: 16 17 enter: continue 18 q: quit 19 i: inspect 20 ``` 21 22 - title: Demo 23 log: yes 24 25 notes: 26 goal: 27 - add pause 28 - add pause support to generic step rather than just shell func 29 30 vars: 31 a: global-var-a 32 33 tasks: 34 35 - 36 name: task 37 task: 38 - func: shell 39 vars: 40 b: runtime-var-b 41 do: 42 - echo "hello" 43 - echo "hello {{.a}}" 44 flags: [pause] 45 46 - func: cmd 47 vars: 48 b: runtime-var-b 49 do: 50 - name: print 51 cmd: "hello {{.a}}" 52 flags: [pause] 53 54 - func: shell 55 do: 56 - echo "next step"