Mercurial > piecrust2
diff piecrust/commands/builtin/baking.py @ 466:456db44dcc53
bake: Pass the config variants and values from the CLI to the baker.
TODO: add support for that for the processor pipeline.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 11 Jul 2015 23:51:02 -0700 |
parents | 04abc97dd3b6 |
children | c7ac7dc2fe73 |
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py Sat Jul 11 20:33:55 2015 -0700 +++ b/piecrust/commands/builtin/baking.py Sat Jul 11 23:51:02 2015 -0700 @@ -98,7 +98,9 @@ ctx.app.config.set('baker/batch_size', ctx.args.batch_size) baker = Baker( ctx.app, out_dir, - force=ctx.args.force) + force=ctx.args.force, + applied_config_variant=ctx.config_variant, + applied_config_values=ctx.config_values) record = baker.bake() _merge_timers(record.timers, ctx.timers) return record.success