@cli.command()<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>default=None,<EOL>type=click.INT,<EOL>help="<STR_LIT>",<EOL>)<EOL>@click.argument("<STR_LIT>", type=click.Path(resolve_path=True), nargs=-<NUM_LIT:1>, required=False)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>type=click.STRING,<EOL>help="<STR_LIT>",<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>type=click.STRING,<EOL>default="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>)<EOL>@click.pass_context<EOL>def build(ctx, max_revisions, targets, operators, archiver):
config = ctx.obj["<STR_LIT>"]<EOL>from wily.commands.build import build<EOL>if max_revisions:<EOL><INDENT>logger.debug(f"<STR_LIT>")<EOL>config.max_revisions = max_revisions<EOL><DEDENT>if operators:<EOL><INDENT>logger.debug(f"<STR_LIT>")<EOL>config.operators = operators.strip().split("<STR_LIT:U+002C>")<EOL><DEDENT>if archiver:<EOL><INDENT>logger.debug(f"<STR_LIT>")<EOL>config.archiver = archiver<EOL><DEDENT>if targets:<EOL><INDENT>logger.debug(f"<STR_LIT>")<EOL>config.targets = targets<EOL><DEDENT>build(<EOL>config=config,<EOL>archiver=resolve_archiver(config.archiver),<EOL>operators=resolve_operators(config.operators),<EOL>)<EOL>logger.info(<EOL>"<STR_LIT>"<EOL>)<EOL>
Build the wily cache.