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

     1  doc_meta: |
     2    folder: test-debug
     3    title: pause and inspect
     4    head: |
     5      pause cmd is mainly for debugging purpose, you can use it inspect internal exec runtime vars
     6  
     7    sections:
     8      - title: How to use
     9        content: |
    10          during the runtime, if a pause cmd is executed, then it will pause to give a user prompt:
    11  
    12          ```
    13          Enter Value For pause action to continue:
    14  
    15          enter: continue
    16            q: quit
    17            i: inspect
    18          ```
    19  
    20          You can hit enter to continue, or q to quite, or i to inspect the runtime exec vars
    21  
    22      - title: Demo
    23        log: yes
    24  
    25  
    26  notes:
    27    goal:
    28      - add pause cmd
    29  
    30  tasks:
    31    -
    32      name: task
    33      task:
    34        -
    35          func: cmd
    36          do:
    37            - name: print
    38              cmd: hello
    39  
    40        -
    41          func: cmd
    42          do:
    43            - name: pause
    44  
    45        -
    46          func: cmd
    47          do:
    48            - name: print
    49              cmd: world
    50