env module now properly supports config file

This commit is contained in:
Jef Roosens 2022-04-06 17:51:06 +02:00
parent 21ef262ede
commit e9d7858380
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 51 additions and 33 deletions

View file

@ -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) ?
}