bebebebebebbbeb

This commit is contained in:
2026-01-23 18:44:37 +02:00
parent 5477f9ce7f
commit bc192fdd7d
2 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
# Configuration
let template_dir = ".typst-template"
let config_dir = ".config"
let out_dir = (pwd)
let out_dir = $"(pwd)/works"
def main [subject: string, shortcode: string, number: string = ""] {
let subject_lower = ($subject | str downcase)
@@ -45,7 +45,7 @@ def validate-input [subject: string, shortcode: string, number: string] {
error make -u {msg: "subjects.toml not found in config directory"}
}
if $out_dir != "." and not ($out_dir | path exists) {
if not ($out_dir | path exists) {
mkdir $out_dir
}

View File

@@ -1,7 +1,6 @@
# Configuration
template_dir := ".typst-template"
config_dir := ".config"
out_dir := ""
# Default target
default:
@@ -9,4 +8,4 @@ default:
# Create new work from template
new subject shortcode number="":
./.config/create-work.nu {{subject}} {{shortcode}} {{number}}
@./.config/create-work.nu {{subject}} {{shortcode}} {{number}}