c0020_vvvvv

Log reference:

    loading [Config]:  ./tests/functests/upconfig.yml
    Main config:
                 Version -> 1.0.0
                  RefDir -> ./tests/functests
                 WorkDir -> cwd
              AbsWorkDir -> /up_project/up
                TaskFile -> c0020
                 Verbose -> vvvvv
              ModuleName -> self
               ShellType -> /bin/sh
           MaxCallLayers -> 8
                 Timeout -> 3600000
     MaxModuelCallLayers -> 256
               EntryTask -> task
      ModRepoUsernameRef -> 
      ModRepoPasswordRef -> 
     :release version:  1.0.0
     :verbose level:  vvvvv
    work dir: /up_project/up
    -exec task: task
    loading [Task]:  ./tests/functests/c0020
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    -------full vars in scopes------
    (*impl.Scopes)(0xc0001e70e0)(<nil>)
    
    ---------group vars----------
    
    global: (*core.Cache)({
    })
    
    
    groups members:[]
    merged[ dev ] runtime vars:
    (*core.Cache)({
      "school": "sydney grammar"
    })
    
    (*core.Cache)(0xc000126908)((len=1) {
     (string) (len=6) "school": (string) (len=14) "sydney grammar"
    })
    
    [runtime global] dvar expanded result:
    {
    }
    
    
    -------runtime global final merged with dvars-------
    
    (*core.Cache)({
      "school": "sydney grammar"
    })
    
      located task-> 1 [task]: 
    Task1: [task ==> task:  ]
    Executing task stack layer: 1
    
    -Step1: [: call function with different vars ]
    {
      Name: "",
      Do: {
        "function"
      },
      Dox: <nil>,
      Func: "call",
      Vars: {
        "studentname": "Tom",
        "school": "sydney grammar",
        "gender": "male"
      },
      Dvars: <nil>,
      Desc: "call function with different vars",
      Reg: "",
      Flags: <nil>,
      If: "",
      Else: <nil>,
      Loop: <nil>,
      Until: "",
      RefDir: "",
      VarsFile: "",
      Timeout: 0,
      Finally: <nil>,
      Rescue: false
    }
    
    current exec runtime vars:
    (*core.Cache)({
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 0,
      "studentname": "Tom",
      "gender": "male"
    })
    
    [local] dvar expanded result:
    {
    }
    
    
    scope[local] merged: {
      "studentname": "Tom",
      "gender": "male",
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 0
    }
    
    
    self: final context exec vars:
    
    (*core.Cache)({
      "studentname": "Tom",
      "gender": "male",
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 0
    })
    
    caller's vars to task (function)::
    (*core.Cache)({
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 0,
      "studentname": "Tom",
      "gender": "male"
    })
    
      located task-> 2 [function]: 
    =Task2: [task ==> function: as a design pattern, this is a function task
    it's better to not to use any local vars, in this
    way, the vars are passed in from caller call so
    that this function could be used by multiple ref tasks
     ]
    Executing task stack layer: 2
    
    --Step1: [: show school and student info ]
    {
      Name: "",
      Do: {
        "echo \"studentname -> {{.studentname}} | gender -> {{.gender}}\"",
        "echo \"school -> {{.school}}\""
      },
      Dox: <nil>,
      Func: "shell",
      Vars: <nil>,
      Dvars: <nil>,
      Desc: "show school and student info",
      Reg: "",
      Flags: <nil>,
      If: "",
      Else: <nil>,
      Loop: <nil>,
      Until: "",
      RefDir: "",
      VarsFile: "",
      Timeout: 0,
      Finally: <nil>,
      Rescue: false
    }
    
    current exec runtime vars:
    (*core.Cache)({
      "studentname": "Tom",
      "gender": "male",
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 1
    })
    
    [local] dvar expanded result:
    {
    }
    
    
    scope[local] merged: {
      "studentname": "Tom",
      "gender": "male",
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 1
    }
    
    
    self: final context exec vars:
    
    (*core.Cache)({
      "school": "sydney grammar",
      "up_runtime_task_layer_number": 1,
      "studentname": "Tom",
      "gender": "male"
    })
    
    cmd( 1):
    echo "studentname -> {{.studentname}} | gender -> {{.gender}}"
    
    cmd=>:
    echo "studentname -> Tom | gender -> male"
    -
    studentname -> Tom | gender -> male
    
    -
     .. ok
    (utils.ExecResult) {
     Cmd: (string) (len=42) "echo \"studentname -> Tom | gender -> male\"",
     Code: (int) 0,
     Output: (string) (len=35) "studentname -> Tom | gender -> male",
     ErrMsg: (string) ""
    }
    
    cmd( 2):
    echo "school -> {{.school}}"
    
    cmd=>:
    echo "school -> sydney grammar"
    -
    school -> sydney grammar
    
    -
     .. ok
    (utils.ExecResult) {
     Cmd: (string) (len=31) "echo \"school -> sydney grammar\"",
     Code: (int) 0,
     Output: (string) (len=24) "school -> sydney grammar",
     ErrMsg: (string) ""
    }
    
    . ok
    
Logs with different verbose level
References