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

     1  doc_meta: |
     2    folder: quick-start
     3    title: use env var
     4    head: |
     5      To consume the environment vars in shell func, simply use $varname as reference
     6  
     7    sections:
     8      - title: Demo
     9        log: yes
    10  
    11      - title: note
    12        content: |
    13          the ":" is offending, please try to avoid using it or use it in text litera
    14  
    15  notes:
    16    goal:
    17      - to test out using env vars
    18      - result:
    19          - it takes env var properly
    20          - the ":" is offending, please try to avoid using it
    21          - or use it in text litera
    22  
    23  tasks:
    24  
    25    -
    26      name: task
    27      task:
    28        -
    29          func: shell
    30          desc: to test display env vars from shell context
    31          do:
    32            - |
    33              echo "aaa: $aaa"
    34  
    35            - |
    36              echo "bbb: $bbb"
    37  
    38            - echo "aaa':' $aaa"
    39            - echo "aaa":" $aaa"
    40            - echo "aaa -> $aaa"
    41