Mercurial > piecrust2
changeset 1032:54159951d97a
bake: Add `--sources` argument.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 16 Jan 2018 08:38:06 -0800 |
parents | c1e062843464 |
children | 57283302b3ee |
files | piecrust/commands/builtin/baking.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py Wed Dec 27 15:58:33 2017 -0800 +++ b/piecrust/commands/builtin/baking.py Tue Jan 16 08:38:06 2018 -0800 @@ -26,7 +26,11 @@ action='store_true') parser.add_argument( '-p', '--pipelines', - help="The pipelines to run.", + help="Specifies the pipelines to run.", + action='append') + parser.add_argument( + '-s', '--sources', + help="Specifies the content sources to run.", action='append') parser.add_argument( '-w', '--workers', @@ -140,6 +144,7 @@ baker = Baker( ctx.appfactory, ctx.app, out_dir, force=ctx.args.force, + allowed_sources=ctx.args.sources, allowed_pipelines=allowed_pipelines, forbidden_pipelines=forbidden_pipelines) records = baker.bake()