github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0004.yml (about)

     1  doc_meta: |
     2    folder: quick-start
     3    title: Use array
     4    head: |
     5      Mix of yaml literal and single line of shell script
     6  
     7    sections:
     8      - title: Demo
     9        log: yes
    10  
    11  notes:
    12    goal:
    13      - to test the shell function can handle multiline scripts in array
    14  
    15  tasks:
    16    -
    17      name: task
    18      desc: this is task1
    19      task:
    20        -
    21          func: shell
    22          desc: do step1 in shell func
    23          do:
    24            - |
    25               echo "hello"
    26               echo "world"
    27            -  echo "how are you"
    28