in mozilla_schema_generator/__main__.py [0:0]
def common_options(func):
"""Common options for schema generator commands."""
return _apply_options(
func,
[
click.option(
"--out-dir",
help=(
"The directory to write the schema files to. "
"If not provided, writes the schemas to stdout."
),
type=click.Path(dir_okay=True, file_okay=False, writable=True),
required=False,
),
click.option(
"--pretty",
is_flag=True,
help=(
"If specified, pretty-prints the JSON "
"schemas that are outputted. Otherwise "
"the schemas will be on one line."
),
),
click.option(
"--mps-branch",
help=(
"If specified, the source branch of "
"mozilla-pipeline-schemas to reference"
),
required=False,
type=str,
default="main",
),
],
)