vieter/src/build/cli.v

25 lines
427 B
Coq
Raw Normal View History

module build
import cli
import env
pub struct Config {
pub:
api_key string
address string
}
2022-04-06 17:57:05 +02:00
// cmd returns the cli submodule that handles the build process
pub fn cmd() cli.Command {
return cli.Command{
name: 'build'
description: 'Run the build process.'
execute: fn (cmd cli.Command) ? {
config_file := cmd.flags.get_string('config-file') ?
conf := env.load<Config>(config_file) ?
build(conf) ?
}
}
}