2022-08-13 21:44:21 +09:00
|
|
|
module commands
|
|
|
|
|
|
|
|
import os
|
|
|
|
import cli
|
|
|
|
|
|
|
|
pub fn execute() {
|
|
|
|
mut app := cli.Command{
|
|
|
|
name: 'vss'
|
2022-09-06 02:37:17 +09:00
|
|
|
version: '0.0.9'
|
2022-08-13 21:44:21 +09:00
|
|
|
description: 'static site generator'
|
|
|
|
execute: fn (cmd cli.Command) ? {
|
|
|
|
println(cmd.help_message())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
app.add_command(new_build_cmd())
|
|
|
|
|
|
|
|
app.setup()
|
|
|
|
app.parse(os.args)
|
|
|
|
}
|