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

     1  doc_meta: |
     2    folder: vars
     3    title: use vars in desc
     4    head: |
     5      You can use vars in description
     6  
     7    sections:
     8      - title: Demo
     9        log: yes
    10  
    11  vars:
    12    person:
    13      name: tom
    14      sex: male
    15      age: 18
    16    env: dev
    17  
    18  tasks:
    19  
    20    -
    21      name: task
    22      desc: |
    23        this is a story about {{.person.name}}
    24      task:
    25        -
    26          func: cmd
    27          desc: |
    28            {{.person.name}} is {{.person.sex}}
    29          vars:
    30            school: sydney grammar
    31          dvars:
    32            - name: continue
    33              value: "N"
    34              desc: "Are you sure ? all items in {{.env}} infrastructure will be destroyed ! (yes/N)"
    35              flags: [prompt]
    36          do:
    37            - name: print
    38              desc: |
    39                his age is {{.person.age}}
    40                he is in school: {{.school}}
    41                ?continue: {{.continue}}
    42              cmd: 'what gender is {{.person.name}}'