c0039_vv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0039
Verbose -> vv
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/c0039
module: [self], instance id: [dev], exec profile: []
dvar> usage_of_with:
" student name: Tom\n school name: Sydney Grammar\n Male\n "
-
student name: Tom
school name: Sydney Grammar
Male
dvar> usage_of_with_else:
" i am somebody "
-
i am somebody
dvar> template_def_plain:
"\n\n\nONE TWO\"\n"
-
ONE TWO"
dvar> template_def_consume:
"\nshow example of how you can define reusable template\nand how you can pass in the parameters\n\n\n\n\nstudent:\n name: ONE: Tom\n gender: TWO: Male\n"
-
show example of how you can define reusable template
and how you can pass in the parameters
student:
name: ONE: Tom
gender: TWO: Male
template rendering -> template: .:4:11: executing "." at <{{template "T3" .student}}>: template "T3" not defined
WARN:
1:{{.template_def_consume_dynamic_t1}}
2:{{.template_def_consume_dynamic_t2}}
3:{{.template_def_consume_dynamic_t3}}
4:{{template "T3" .student}}
5:
6:
trouble shooting tips:
<incompatible types for comparison>: the variable might not be registered, use -v vvv to see the cache, or use inspect cmd to debug
dvar> template_def_consume_dynamic:
"\n\n\n\nstudent:\n name: ONE: Tom\n gender: TWO: Male\n\n"
-
student:
name: ONE: Tom
gender: TWO: Male
dvar> template_use_block:
"\n\nstudent:\n name: ONE: Tom\ngender: TWO: Male\n\n"
-
student:
name: ONE: Tom
gender: TWO: Male
Task1: [task ==> task: ]
-Step1:
cmd( 1):
echo "value\n {{.usage_of_with}}"
-
value\n student name: Tom
school name: Sydney Grammar
Male
-
.. ok
cmd( 2):
echo "{{.usage_of_template}}"
-
<no value>
-
.. ok
cmd( 3):
echo "{{.template_def_consume}}"
-
show example of how you can define reusable template
and how you can pass in the parameters
student:
name: ONE: Tom
gender: TWO: Male
-
.. ok
cmd( 4):
echo "{{.template_def_consume_dynamic_t1}}"
-
{{define T1}}ONE: {{.}}{{end}}
-
.. ok
cmd( 5):
echo "{{.template_def_consume_dynamic_t2}}"
-
{{define T2}}TWO: {{.}}{{end}}
-
.. ok
cmd( 6):
echo "{{.template_def_consume_dynamic_t3}}"
-
{{define T3}}student:
name: {{template T1 .name}}
gender: {{template T2 .gender}}{{end}}
{{template T3 .student}}
-
.. ok
cmd( 7):
echo "{{.template_def_consume_dynamic}}"
-
student:
name: ONE: Tom
gender: TWO: Male
-
.. ok
cmd( 8):
echo "{{.template_use_block}}"
-
student:
name: ONE: Tom
gender: TWO: Male
-
.. ok
. ok
Logs with different verbose level
References