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

     1  notes:
     2    - testonly
     3    - test that the taskScope object should exist in the next func impl
     4  
     5  vars:
     6    json: |
     7      person:
     8        name: tom
     9        sex: male
    10        age: 18
    11  
    12  tasks:
    13  
    14    -
    15      name: task
    16      task:
    17        -
    18          func: cmd
    19          dvars:
    20            - name: person_text
    21              value: '{{ .json }}'
    22              flags:
    23                - toObj
    24                - taskScope
    25                - v
    26  
    27        -
    28          func: cmd
    29          do:
    30            -
    31              name: inspect
    32              cmd:
    33                - exec_vars
    34