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

     1  goal:
     2    - add dvar promot to get input value
     3    - show that the dvar is living in its own scope
     4  
     5  vars:
     6    student: James
     7  
     8  tasks:
     9    -
    10      name: task
    11      task:
    12  
    13        - func: shell
    14          do:
    15            - echo "hello {{.student}}"
    16  
    17        - func: shell
    18          dvars:
    19            - name: student
    20              flags: [prompt,]
    21          do:
    22            - echo "hello {{.student}}"