forked from vieter-v/vieter
env module now properly supports config file
This commit is contained in:
parent
21ef262ede
commit
e9d7858380
4 changed files with 51 additions and 33 deletions
|
|
@ -8,7 +8,8 @@ pub fn cmd() cli.Command {
|
|||
name: 'server'
|
||||
description: 'Start the Vieter server'
|
||||
execute: fn (cmd cli.Command) ? {
|
||||
conf := env.load<env.ServerConfig>() ?
|
||||
config_file := cmd.flags.get_string('config-file') ?
|
||||
conf := env.load<env.ServerConfig>(config_file) ?
|
||||
|
||||
server(conf) ?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue