verbose flag

You can use different verbose level as a flag for debugging and reveal the information you would like to trace

This showcases that the dvar’s rendered result will be printed out with that flagged verbose level

For example, if the set flag is vvv, then when you run below command with verbose level vvv, the result will be printed

up task -d ./tests/functests -t $1 -i dev -v vvvv --configdir=./tests/functests

Demo

source

Main task yaml file
    docs: ""
    vars:
      person: peter
      managers:
      - tom
      - jason
      - alice
    dvars:
    - name: var_with_range_v
      value: "{{range .managers}} x {{end}}"
      flags: [v]
    - name: var_with_range_vv
      value: "{{range .managers}} x {{end}}"
      flags: [vv]
    - name: var_with_range_vvv
      value: "{{range .managers}} x {{end}}"
      flags: [vvv]
    - name: var_with_range_vvvv
      value: "{{range .managers}} x {{end}}"
      flags: [vvvv]
    - name: var_with_range_vvvvv
      value: "{{range .managers}} x {{end}}"
      flags: [vvvvv]
    - name: var_with_range_vvvvvv
      value: "{{range .managers}} x {{end}}"
      flags: [vvvvvvv]
    tasks:
    - name: task
      task:
    
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 -> c0065
                 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/c0065
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    dvar> var_with_range_v:
    " x  x  x "
    
    -
     x  x  x 
    dvar> var_with_range_vv:
    " x  x  x "
    
    -
     x  x  x 
    dvar> var_with_range_vvv:
    " x  x  x "
    
    -
     x  x  x 
    dvar> var_with_range_vvvv:
    " x  x  x "
    
    -
     x  x  x 
    dvar> var_with_range_vvvvv:
    " x  x  x "
    
    -
     x  x  x 
    dvar> var_with_range_vvvvv:
    " x  x  x "
    
    -
     x  x  x 
    Task1: [task ==> task:  ]
    
Logs with different verbose level
Raw logs with different verbose level