setup-browser/src/main.v

29 lines
512 B
V
Raw Normal View History

2024-12-25 04:11:32 +01:00
module main
import cli
import os
fn main() {
mut app := cli.Command{
name: 'setup-browser'
description: 'Set-up browsers from various sources'
version: '0.0.1'
defaults: struct {
man: false
help: true
version: true
}
}
app.execute = fn [app] (cmd cli.Command) ! {
println(app.help_message())
// cli.print_help_for_command(cmd) or { eprintln('failed to print help for command') }
return
}
app.add_command(install_command)
app.setup()
app.parse(os.args)
}