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: 'build'
|
||||
description: 'Run the build process.'
|
||||
execute: fn (cmd cli.Command) ? {
|
||||
conf := env.load<env.BuildConfig>() ?
|
||||
config_file := cmd.flags.get_string('config-file') ?
|
||||
conf := env.load<env.BuildConfig>(config_file) ?
|
||||
|
||||
build(conf) ?
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue