template using data file
This showcases the feature that you can render a template using the loaded vars from a file
Demo
source
Main task yaml file
tasks:
- name: task
desc: mock up test to test module.template rendering
task:
- func: cmd
do:
- name: template
desc: render a template file to a file 1
cmd:
src: ./tests/functests/d0145.template
dest: /tmp/mockup_doc.md
datafile: d0145_data.yml
- func: shell
do:
- cat /tmp/mockup_doc.md
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 -> c0145
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/c0145
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
Task1: [task ==> task: mock up test to test module.template rendering ]
-Step1:
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
~SubStep1: [template: render a template file to a file 1 ]
-Step2:
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
cmd( 1):
cat /tmp/mockup_doc.md
-
title: "HelloWorld example"
date: 2020-10-06T23:42:21+1010:00
draft: false
-
.. ok
. ok
Logs with different verbose level
Raw logs with different verbose level