github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0087.yml (about) 1 doc_meta: | 2 folder: cmd-func 3 title: sleep 4 head: | 5 Showcase sleep cmd 6 7 sections: 8 - title: Demo 9 log: yes 10 11 notes: 12 goal: 13 - test a sleep delay cmd 14 - test a dynamic call in a loop 15 16 tasks: 17 - 18 name: task 19 desc: generate logs 20 task: 21 22 - 23 func: shell 24 do: 25 - echo 'hello' 26 - 27 func: cmd 28 do: 29 - name: sleep 30 cmd: 2000 31 - 32 func: cmd 33 do: 34 - name: print 35 cmd: world 36 37 - 38 func: call 39 do: 40 - '{{.loopitem}}' 41 loop: [impl1, impl2] 42 43 - 44 name: impl1 45 task: 46 47 - 48 func: cmd 49 do: 50 - name: print 51 cmd: hello 52 53 - 54 func: cmd 55 do: 56 - name: sleep 57 cmd: 1000 58 59 - 60 name: impl2 61 task: 62 63 - 64 func: cmd 65 do: 66 - name: print 67 cmd: world 68