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

This commit is contained in:
zztkm 2022-07-26 02:08:07 +09:00
parent a3d71455d4
commit 883adf943b

6
vss.v
View file

@ -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)
} }