c0099_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 -> c0099
                 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/c0099
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    -------full vars in scopes------
    (*impl.Scopes)(0xc000098700)(<nil>)
    
    ---------group vars----------
    
    global: (*core.Cache)({
    })
    
    
    groups members:[]
    merged[ dev ] runtime vars:
    (*core.Cache)({
      "student": {
        "name": "Tom",
        "gender": "Male",
        "school": "Sydney Grammar"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "name": "Grace",
              "gender": "Female",
              "school": "MLC"
            }
          }
        }
      }
    })
    
    (*core.Cache)(0xc0000c8160)((len=2) {
     (string) (len=3) "nsw": (map[string]interface {}) (len=1) {
      (string) (len=6) "sydney": (map[string]interface {}) (len=1) {
       (string) (len=8) "sgschool": (map[string]interface {}) (len=1) {
        (string) (len=7) "student": (map[string]interface {}) (len=3) {
         (string) (len=4) "name": (string) (len=5) "Grace",
         (string) (len=6) "gender": (string) (len=6) "Female",
         (string) (len=6) "school": (string) (len=3) "MLC"
        }
       }
      }
     },
     (string) (len=7) "student": (map[string]interface {}) (len=3) {
      (string) (len=6) "school": (string) (len=14) "Sydney Grammar",
      (string) (len=4) "name": (string) (len=3) "Tom",
      (string) (len=6) "gender": (string) (len=4) "Male"
     }
    })
    
    [runtime global] dvar expanded result:
    {
    }
    
    
    -------runtime global final merged with dvars-------
    
    (*core.Cache)({
      "student": {
        "name": "Tom",
        "gender": "Male",
        "school": "Sydney Grammar"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "school": "MLC",
              "name": "Grace",
              "gender": "Female"
            }
          }
        }
      }
    })
    
      located task-> 1 [task]: 
    Task1: [task ==> task:  ]
    Executing task stack layer: 1
    
    -Step1: [: use datatemplate as datasource ]
    {
      Name: "",
      Do: {
        {
          "name": "print",
          "cmd": "{{.student_info}}"
        }
      },
      Dox: <nil>,
      Func: "cmd",
      Vars: <nil>,
      Dvars: {
        {
          Name: "student_info",
          Value: "my name is:{{.name}} and I am in {{.school}}",
          Desc: "",
          Expand: 0,
          Flags: {
            "vvv"
          },
          Rendered: "",
          Secure: (*utils.SecureSetting)(<nil>),
          Ref: "",
          RefDir: "",
          DataKey: "",
          DataPath: "",
          DataTemplate: "name: {{.nsw.sydney.sgschool.student.name}}\ngender: {{.nsw.sydney.sgschool.student.gender}}\nschool: {{.nsw.sydney.sgschool.student.school}}\n"
        }
      },
      Desc: "use datatemplate as datasource",
      Reg: "",
      Flags: <nil>,
      If: "",
      Else: <nil>,
      Loop: <nil>,
      Until: "",
      RefDir: "",
      VarsFile: "",
      Timeout: 0,
      Finally: <nil>,
      Rescue: false
    }
    
    current exec runtime vars:
    (*core.Cache)({
      "student": {
        "name": "Tom",
        "gender": "Male",
        "school": "Sydney Grammar"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "name": "Grace",
              "gender": "Female",
              "school": "MLC"
            }
          }
        }
      },
      "up_runtime_task_layer_number": 0
    })
    
    dvar> student_info:
    "my name is:Grace and I am in MLC"
    
    -
    my name is:Grace and I am in MLC
    [local] dvar expanded result:
    {
      "student_info": "my name is:Grace and I am in MLC"
    }
    
    
    scope[local] merged: {
      "student": {
        "gender": "Male",
        "school": "Sydney Grammar",
        "name": "Tom"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "name": "Grace",
              "gender": "Female",
              "school": "MLC"
            }
          }
        }
      },
      "up_runtime_task_layer_number": 0,
      "student_info": "my name is:Grace and I am in MLC"
    }
    
    
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0,
      "student_info": "my name is:Grace and I am in MLC",
      "student": {
        "school": "Sydney Grammar",
        "name": "Tom",
        "gender": "Male"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "school": "MLC",
              "name": "Grace",
              "gender": "Female"
            }
          }
        }
      }
    })
    
    {{.student_info}}
    ~SubStep1: [print:  ]
    my name is:Grace and I am in MLC
    -Step2: [: use datatemplate as datasource ]
    {
      Name: "",
      Do: {
        {
          "name": "print",
          "cmd": "{{.student_info}}"
        }
      },
      Dox: <nil>,
      Func: "cmd",
      Vars: <nil>,
      Dvars: {
        {
          Name: "student_info",
          Value: "my name is:{{.student.name}} and I am in {{.school.name}}",
          Desc: "",
          Expand: 0,
          Flags: {
            "vvv"
          },
          Rendered: "",
          Secure: (*utils.SecureSetting)(<nil>),
          Ref: "",
          RefDir: "",
          DataKey: "",
          DataPath: "",
          DataTemplate: "student:\n  name: {{.nsw.sydney.sgschool.student.name}}\n  gender: {{.nsw.sydney.sgschool.student.gender}}\nschool:\n  name: {{.nsw.sydney.sgschool.student.school}}\n"
        }
      },
      Desc: "use datatemplate as datasource",
      Reg: "",
      Flags: <nil>,
      If: "",
      Else: <nil>,
      Loop: <nil>,
      Until: "",
      RefDir: "",
      VarsFile: "",
      Timeout: 0,
      Finally: <nil>,
      Rescue: false
    }
    
    current exec runtime vars:
    (*core.Cache)({
      "student": {
        "gender": "Male",
        "school": "Sydney Grammar",
        "name": "Tom"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "gender": "Female",
              "school": "MLC",
              "name": "Grace"
            }
          }
        }
      },
      "up_runtime_task_layer_number": 0
    })
    
    dvar> student_info:
    "my name is:Grace and I am in MLC"
    
    -
    my name is:Grace and I am in MLC
    [local] dvar expanded result:
    {
      "student_info": "my name is:Grace and I am in MLC"
    }
    
    
    scope[local] merged: {
      "up_runtime_task_layer_number": 0,
      "student_info": "my name is:Grace and I am in MLC",
      "student": {
        "name": "Tom",
        "gender": "Male",
        "school": "Sydney Grammar"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "gender": "Female",
              "school": "MLC",
              "name": "Grace"
            }
          }
        }
      }
    }
    
    
    self: final context exec vars:
    
    (*core.Cache)({
      "student": {
        "gender": "Male",
        "school": "Sydney Grammar",
        "name": "Tom"
      },
      "nsw": {
        "sydney": {
          "sgschool": {
            "student": {
              "school": "MLC",
              "name": "Grace",
              "gender": "Female"
            }
          }
        }
      },
      "up_runtime_task_layer_number": 0,
      "student_info": "my name is:Grace and I am in MLC"
    })
    
    {{.student_info}}
    ~SubStep1: [print:  ]
    my name is:Grace and I am in MLC
    
Logs with different verbose level
References