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

     1  doc_meta: |
     2    folder: test-debug
     3    title: deactivated sub step in cmd
     4    head: |
     5      This shows how to deactivate a sub step
     6  
     7    sections:
     8      - title: cmd
     9        content: |
    10          add a extra x to cmd to make it cmdx as indication to deactivate for the time being
    11  
    12      - title: name
    13        content: |
    14          add a extra x to name to make it namex as indication to deactivate for the time being, this is for the cases for the simple cmd only, such as exit, break etc
    15  
    16      - title: Demo
    17        log: yes
    18  
    19  tasks:
    20    - name: task
    21      task:
    22        - func: cmd
    23          do:
    24            - name: print
    25              cmdy: "step1"
    26            - name: print
    27              cmdx: "step2"
    28            - name: print
    29              cmd: "step3"
    30  
    31  
    32        - func: cmd
    33          do:
    34            - name: print
    35              cmdy: "step4"
    36  
    37            - namex: exit
    38  
    39            - namex: break
    40  
    41            - name: print
    42              cmdy: "step4"
    43  
    44        - func: cmd
    45          do:
    46            - name: print
    47              cmd: "step5"
    48  
    49        - func: cmd
    50          do:
    51            - name: print
    52              cmdx: "step6"