@cli.command()<EOL>@click.argument("<STR_LIT:file>", type=click.Path(resolve_path=False))<EOL>@click.argument("<STR_LIT>", nargs=-<NUM_LIT:1>, required=False)<EOL>@click.option("<STR_LIT>", "<STR_LIT>", help="<STR_LIT>", type=click.INT)<EOL>@click.option("<STR_LIT>", default=False, help="<STR_LIT>")<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>default=ReportFormat.CONSOLE.name,<EOL>help="<STR_LIT>",<EOL>type=click.Choice(ReportFormat.get_all()),<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>default=DEFAULT_GRID_STYLE,<EOL>help="<STR_LIT>"<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>", "<STR_LIT>", help="<STR_LIT>"<EOL>)<EOL>@click.pass_context<EOL>def report(ctx, file, metrics, number, message, format, console_format, output):
config = ctx.obj["<STR_LIT>"]<EOL>if not exists(config):<EOL><INDENT>handle_no_cache(ctx)<EOL><DEDENT>if not metrics:<EOL><INDENT>metrics = get_default_metrics(config)<EOL>logger.info(f"<STR_LIT>")<EOL><DEDENT>new_output = Path().cwd()<EOL>if output:<EOL><INDENT>new_output = new_output / Path(output)<EOL><DEDENT>else:<EOL><INDENT>new_output = new_output / "<STR_LIT>" / "<STR_LIT>"<EOL><DEDENT>from wily.commands.report import report<EOL>logger.debug(f"<STR_LIT>")<EOL>logger.debug(f"<STR_LIT>")<EOL>report(<EOL>config=config,<EOL>path=file,<EOL>metrics=metrics,<EOL>n=number,<EOL>output=new_output,<EOL>include_message=message,<EOL>format=ReportFormat[format],<EOL>console_format=console_format,<EOL>)<EOL>
Show metrics for a given file.