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

     1  doc_meta: |
     2    folder: vars
     3    title: local vars
     4    head: |
     5      Showcase that the local var is jailed in local space only
     6  
     7      The below case shows that the var a is available in step1 but not in step2
     8  
     9    sections:
    10      - title: Demo
    11        log: yes
    12  
    13  notes:
    14    goal:
    15      - to test and show that the local var is jailed in local space only
    16  
    17  tasks:
    18  
    19    -
    20  
    21      name: task
    22      task:
    23        -
    24          func: shell
    25          name: step1
    26          vars:
    27            a: aaa
    28            b: bbb
    29          do:
    30            - pwd
    31  
    32        -
    33          func: shell
    34          name: step2
    35          do:
    36            - echo "{{.a}}"