vieter/src/main.v

36 lines
568 B
Coq
Raw Normal View History

module main
import os
2022-02-21 20:51:41 +01:00
import server
import util
import cli
import env
import build
import git
2022-01-09 10:36:02 +01:00
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()
]
2022-02-19 21:41:26 +01:00
}
app.setup()
app.parse(os.args)
}