cross platform i guess (except for tar)

This commit is contained in:
2026-01-23 20:20:57 +02:00
parent 81f474a260
commit 8a705a5321
+3 -1
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env nu #!/usr/bin/env nu
# Configuration # Configuration
use std
let template_dir = ".config/template" let template_dir = ".config/template"
let config_dir = ".config" let config_dir = ".config"
let out_dir = $"(pwd)" let out_dir = $"(pwd)"
@@ -21,7 +23,7 @@ def main [subject: string, shortcode: string, number?: int] {
# TODO?: replace with git clone # TODO?: replace with git clone
# copy-template $temp_dir # copy-template $temp_dir
$template | decode base64 | tar zxvf - --strip-components=1 -C $temp_dir o> /dev/null $template | decode base64 | tar zxvf - --strip-components=1 -C $temp_dir o> (std null-device)
generate-doc-toml $shortcode_lower $subject_lower $temp_dir $number generate-doc-toml $shortcode_lower $subject_lower $temp_dir $number
if not ($out_dir | path exists) { if not ($out_dir | path exists) {