Switched to cli module; merged cli & vieter into single binary

This commit is contained in:
Jef Roosens 2022-04-06 16:52:31 +02:00
parent 09d0a40aae
commit 5b919ceeae
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
9 changed files with 167 additions and 65 deletions

16
src/server/cli.v Normal file
View file

@ -0,0 +1,16 @@
module server
import cli
import env
pub fn cmd() cli.Command {
return cli.Command{
name: 'server'
description: 'Start the Vieter server'
execute: fn (cmd cli.Command) ? {
conf := env.load<env.ServerConfig>() ?
server.server(conf) ?
}
}
}