♻️ パスを取得できなかったときにメッセージを出して終了するようにした

main
zztkm 2 years ago
parent a3d71455d4
commit 883adf943b

@ -10,7 +10,11 @@ fn main() {
version: '0.0.0' version: '0.0.0'
description: 'static site generator' description: 'static site generator'
execute: fn (cmd cli.Command) ? { execute: fn (cmd cli.Command) ? {
paths := get_paths("docs") paths := get_paths("testfiles")
if paths.len == 0 {
println("Cloud not retrieve path")
return
}
for path in paths { for path in paths {
println(path) println(path)
} }

Loading…
Cancel
Save