style: format schema cli
This commit is contained in:
@@ -84,6 +84,7 @@ app.command("explain")(explain.explain_command)
|
|||||||
app.command("status")(status.status_command)
|
app.command("status")(status.status_command)
|
||||||
app.command("schema")(schema.schema_command)
|
app.command("schema")(schema.schema_command)
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
"""Console script entrypoint for `wf`."""
|
"""Console script entrypoint for `wf`."""
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|||||||
@@ -33,7 +33,5 @@ def schema_command(
|
|||||||
message = exc.args[0] if exc.args else str(exc)
|
message = exc.args[0] if exc.args else str(exc)
|
||||||
raise typer.BadParameter(message, param_hint="NAME") from exc
|
raise typer.BadParameter(message, param_hint="NAME") from exc
|
||||||
emit_json(
|
emit_json(
|
||||||
verbose_schema_document(name)
|
verbose_schema_document(name) if verbose else compact_schema_outline(name)
|
||||||
if verbose
|
|
||||||
else compact_schema_outline(name)
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user