use break in call

Introduce the advanced usage of break cmd in callee task

Demo

source

Main task yaml file
    goal:
    - demo advanced break usage in callee task
    tasks:
    - name: task
      desc: main entry
      task:
      - func: cmd
        do:
        - name: print
          cmd: step1
      - func: call
        do: subtask
      - func: cmd
        do:
        - name: print
          cmd: step2
      - func: call
        do: subtask2
      - func: cmd
        do:
        - name: print
          cmd: step3
    - name: subtask
      task:
      - func: cmd
        do:
        - name: print
          cmd: sub task step1
      - func: cmd
        do:
        - name: break
      - func: cmd
        do:
        - name: print
          cmd: sub task step2
    - name: subtask2
      task:
      - func: cmd
        do:
        - name: print
          cmd: sub task step1
      - func: cmd
        vars:
          person: tom
        do:
        - name: break
        if: '{{eq .person "tom"}}'
      - func: cmd
        do:
        - name: print
          cmd: sub task step2
    
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 -> c0121
                 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/c0121
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    Task1: [task ==> task: main entry ]
    -Step1:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    ~SubStep1: [print:  ]
    step1
    -Step2:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    =Task2: [task ==> subtask:  ]
    --Step1:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    ~~SubStep1: [print:  ]
    sub task step1
    --Step2:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    ~~SubStep1: [break:  ]
    --Step3:
     WARN: [break] - [client chose to break]
    -Step3:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    ~SubStep1: [print:  ]
    step2
    -Step4:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    =Task3: [task ==> subtask2:  ]
    --Step1:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    ~~SubStep1: [print:  ]
    sub task step1
    --Step2:
    self: final context exec vars:
    
    (*core.Cache)({
      "person": "tom",
      "up_runtime_task_layer_number": 1
    })
    
    ~~SubStep1: [break:  ]
    --Step3:
     WARN: [break] - [client chose to break]
    -Step5:
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 1
    })
    
    ~SubStep1: [print:  ]
    step3
    
Logs with different verbose level
Raw logs with different verbose level

Other references: