Add bake command

This commit is contained in:
Greg Hellings
2025-09-12 13:25:00 -05:00
parent 62a8d97be3
commit 6748ca22a4
+10
View File
@@ -42,3 +42,13 @@ def ff [ $file: string ] {
def update_all [] {
par-map $servers {|e| deploy $e | complete} | explore
}
def bake [template: string] {
let copier = "~/.copier-templates" | path expand
if not ($copier | path exists) {
git clone srcpub:greg/copier-templates.git $copier
}
let srcdir = [$copier $template] | path join
print $srcdir
copier copy $srcdir .
}