First task - hello world

Welcome to this first quick start guide of up cmd, this shows a hello world type of UP task

Intro

A UP task file is composed of tasks, a task is composed of a sequential steps, a step is function call implementation of function, for example, shell

Demo

source

Main task yaml file
    tasks:
    - name: task
      desc: say hello world in shell
      task:
      - func: shell
        desc: do step1 in shell func
        do:
        - echo "hello"
        - echo "world"
    
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 -> c0001
                 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/c0001
    module: [self], instance id: [dev], exec profile: []
    profile -  envVars:
    
    (*core.Cache)({
    })
    
    Task1: [task ==> task: say hello world in shell ]
    -Step1: [: do step1 in shell func ]
    self: final context exec vars:
    
    (*core.Cache)({
      "up_runtime_task_layer_number": 0
    })
    
    cmd( 1):
    echo "hello"
    
    -
    hello
    
    -
     .. ok
    cmd( 2):
    echo "world"
    
    -
    world
    
    -
     .. ok
    . ok
    
Logs with different verbose level
Raw logs with different verbose level