diff --git a/.config/create-work.nu b/.config/create-work.nu index ee02b67..330a16c 100755 --- a/.config/create-work.nu +++ b/.config/create-work.nu @@ -1,6 +1,8 @@ #!/usr/bin/env nu # Configuration +use std + let template_dir = ".config/template" let config_dir = ".config" let out_dir = $"(pwd)" @@ -21,7 +23,7 @@ def main [subject: string, shortcode: string, number?: int] { # TODO?: replace with git clone # 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 if not ($out_dir | path exists) {