forked from vieter-v/vieter
Switched to cli module; merged cli & vieter into single binary
This commit is contained in:
parent
09d0a40aae
commit
5b919ceeae
9 changed files with 167 additions and 65 deletions
16
src/server/cli.v
Normal file
16
src/server/cli.v
Normal 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) ?
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue