use vars in desc

You can use vars in description

Demo

source

Main task yaml file
    vars:
      person:
        name: tom
        sex: male
        age: 18
      env: dev
    tasks:
    - name: task
      desc: |
        this is a story about {{.person.name}}
      task:
      - func: cmd
        desc: |
          {{.person.name}} is {{.person.sex}}
        vars:
          school: sydney grammar
        dvars:
        - name: continue
          value: "N"
          desc: "Are you sure ? all items in {{.env}} infrastructure will be destroyed
            ! (yes/N)"
          flags: [prompt]
        do:
        - name: print
          desc: |
            his age is {{.person.age}}
            he is in school: {{.school}}
            ?continue: {{.continue}}
          cmd: 'what gender is {{.person.name}}'
    
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 -> c0177
                 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/c0177
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    Task1: [task ==> task: this is a story about tom
     ]
    -Step1: [
    tom is male
    ]
    Enter Value For [continue]: 
    Are you sure ? all items in dev infrastructure will be destroyed ! (yes/N)
    self: final context exec vars:
    
    (*core.Cache)({
      "person": {
        "name": "tom",
        "sex": "male",
        "age": 18
      },
      "env": "dev",
      "up_runtime_task_layer_number": 0,
      "school": "sydney grammar",
      "continue": "N"
    })
    
    ~SubStep1: [print: his age is 18
    he is in school: sydney grammar
    ?continue: N
     ]
    what gender is tom
    
Logs with different verbose level
Raw logs with different verbose level