Move circular include logic to a separate function

This commit is contained in:
tylermmorton
2022-01-15 23:34:59 -05:00
parent 02e7ff27c7
commit c73a2c8f84
4 changed files with 33 additions and 25 deletions

View File

@@ -6,7 +6,4 @@ includes:
tasks:
default:
cmds:
- echo "called_dep" > called_dep.txt
level1:
cmds:
- echo "hello level 1"
- task: one:two:default

View File

@@ -4,6 +4,6 @@ includes:
'two': ./two/Taskfile.yml
tasks:
level2:
level1:
cmds:
- echo "hello level 2"
- echo "hello level 1"

View File

@@ -1,6 +1,6 @@
version: '3'
tasks:
level3:
default:
cmds:
- echo "hello level 3"
- echo "called_dep" > called_dep.txt