github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0089.yml (about) 1 doc_meta: | 2 folder: organization 3 title: load from refdir 4 head: | 5 By default when you use ref tag to load taskfrom a file, it will use the default refdir from cli command line args, however this could be overriden using the refdir tag in task configuration 6 7 sections: 8 - title: how does it work? 9 content: | 10 By default the the refdir should be from below command line, its value will be: ./tests/functests 11 12 ``` 13 up ngo -d ./tests/functests -t $1 -i dev -v vvvv --configdir=./tests/functests 14 ``` 15 16 In this case, the refdir is overriden using your own customised location 17 18 - title: Relavant 19 content: load dvar using refdir 20 refs: 21 - title: externalise dvar and use refdir 22 link: ../../organization/c0088 23 24 - title: Externalized c0089-task-main.yml reference 25 filelookup: c0089-task-main.yml 26 27 - title: Demo 28 log: yes 29 30 notes: 31 goal: 32 - add dynamic refdir support for task ref 33 34 vars: 35 dynadir: ./tests/functests 36 37 tasks: 38 39 - 40 name: task 41 ref: c0089-task-main.yml 42 refdir: '{{.dynadir}}'