♻️ パスを取得できなかったときにメッセージを出して終了するようにした
This commit is contained in:
parent
a3d71455d4
commit
883adf943b
1 changed files with 5 additions and 1 deletions
6
vss.v
6
vss.v
|
@ -10,7 +10,11 @@ fn main() {
|
|||
version: '0.0.0'
|
||||
description: 'static site generator'
|
||||
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 {
|
||||
println(path)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue