cross platform i guess (except for tar)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user