pause and inspect

pause cmd is mainly for debugging purpose, you can use it inspect internal exec runtime vars

How to use

during the runtime, if a pause cmd is executed, then it will pause to give a user prompt:

Enter Value For pause action to continue:

enter: continue
  q: quit
  i: inspect

You can hit enter to continue, or q to quite, or i to inspect the runtime exec vars

Demo

source

Main task yaml file
    tasks:
    - name: task
      task:
      - func: cmd
        do:
        - name: print
          cmd: hello
      - func: cmd
        do:
        - name: pause
      - func: cmd
        do:
        - name: print
          cmd: world
    
Main log file
    loading [Config]:  ./tests/functests/upconfig.yml
    Main config:
                 Version -> 1.0.0
                  RefDir -> ./tests/functests
                 WorkDir -> cwd
              AbsWorkDir -> /up_project/up
                TaskFile -> c0101
                 Verbose -> vvv
              ModuleName -> self
               ShellType -> /bin/sh
           MaxCallLayers -> 8
                 Timeout -> 3600000
     MaxModuelCallLayers -> 256
               EntryTask -> task
      ModRepoUsernameRef -> 
      ModRepoPasswordRef -> 
    work dir: /up_project/up
    -exec task: task
    loading [Task]:  ./tests/functests/c0101
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    Task1: [task ==> task:  ]
    -Step1:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    ~SubStep1: [print:  ]
    hello
    -Step2:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    ~SubStep1: [pause:  ]
    Enter Value For [pause action to continue]: 
    
    enter: continue 
        q: quit
        i: inspect
    
    -Step3:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    ~SubStep1: [print:  ]
    world
    
Logs with different verbose level
Raw logs with different verbose level