Changeset View
Changeset View
Standalone View
Standalone View
swh/scanner/cli.py
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | @click.option( | ||||
"patterns", | "patterns", | ||||
metavar="PATTERN", | metavar="PATTERN", | ||||
multiple=True, | multiple=True, | ||||
help="recursively exclude a specific pattern", | help="recursively exclude a specific pattern", | ||||
) | ) | ||||
@click.option( | @click.option( | ||||
"-f", | "-f", | ||||
"--format", | "--format", | ||||
type=click.Choice(["text", "json", "sunburst"], case_sensitive=False), | type=click.Choice(["text", "json", "ndjson", "sunburst"], case_sensitive=False), | ||||
default="text", | default="text", | ||||
help="select the output format", | help="select the output format", | ||||
) | ) | ||||
@click.pass_context | @click.pass_context | ||||
def scan(ctx, root_path, api_url, patterns, format): | def scan(ctx, root_path, api_url, patterns, format): | ||||
"""Scan a source code project to discover files and directories already | """Scan a source code project to discover files and directories already | ||||
present in the archive""" | present in the archive""" | ||||
sre_patterns = set() | sre_patterns = set() | ||||
Show All 15 Lines |