feat: implement template plan
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
plan {
|
||||
name project
|
||||
|
||||
templates type=jinja2 {
|
||||
path "templates/*.jinja2"
|
||||
output "output/"
|
||||
}
|
||||
|
||||
scripts {
|
||||
world type=shell {}
|
||||
hello type=shell {}
|
||||
}
|
||||
}
|
||||
|
5
examples/plan/scripts/hello.sh
Executable file
5
examples/plan/scripts/hello.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
set -e
|
||||
|
||||
echo "hello plan"
|
5
examples/plan/scripts/world.sh
Executable file
5
examples/plan/scripts/world.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
set -e
|
||||
|
||||
echo "hello plan world"
|
3
examples/plan/templates/something.plan.yaml.jinja2
Normal file
3
examples/plan/templates/something.plan.yaml.jinja2
Normal file
@@ -0,0 +1,3 @@
|
||||
something plan
|
||||
|
||||
val is mapping: {{ global.someKey.some.key.val is mapping }}
|
3
examples/plan/templates/something.yaml.jinja2
Normal file
3
examples/plan/templates/something.yaml.jinja2
Normal file
@@ -0,0 +1,3 @@
|
||||
something plan
|
||||
|
||||
val is mapping: {{ global.someKey.some.key.val is mapping }}
|
Reference in New Issue
Block a user