forked from vieter-v/vieter
19 lines
383 B
V
19 lines
383 B
V
module server
|
|
|
|
import cli
|
|
import env
|
|
|
|
// cmd returns the cli submodule that handles starting the server
|
|
pub fn cmd() cli.Command {
|
|
return cli.Command{
|
|
name: 'server'
|
|
description: 'Start the Vieter server'
|
|
execute: fn (cmd cli.Command) ? {
|
|
config_file := cmd.flags.get_string('config-file') ?
|
|
conf := env.load<env.ServerConfig>(config_file) ?
|
|
|
|
server(conf) ?
|
|
}
|
|
}
|
|
}
|