vieter/src/main.v

34 lines
547 B
V

module main
import os
import server
import cli
import build
import git
fn main() {
mut app := cli.Command{
name: 'vieter'
description: 'Arch repository server'
version: '0.1.0'
flags: [
cli.Flag{
flag: cli.FlagType.string
name: 'config-file'
abbrev: 'f'
description: 'Location of Vieter config file; defaults to ~/.vieterrc.'
global: true
default_value: [os.expand_tilde_to_home('~/.vieterrc')]
},
]
commands: [
server.cmd(),
build.cmd(),
git.cmd(),
]
}
app.setup()
app.parse(os.args)
}