Report the current project's integration status without changing files.
(
json_output: bool = typer.Option(
False,
"--json",
help="Emit machine-readable integration status.",
),
)
| 181 | |
| 182 | @integration_app.command("status") |
| 183 | def integration_status( |
| 184 | json_output: bool = typer.Option( |
| 185 | False, |
| 186 | "--json", |
| 187 | help="Emit machine-readable integration status.", |
| 188 | ), |
| 189 | ): |
| 190 | """Report the current project's integration status without changing files.""" |
| 191 | from .. import _require_specify_project |
| 192 | from ..integration_status import build_integration_status_report |
| 193 | |
| 194 | project_root = _require_specify_project() |
| 195 | report = build_integration_status_report(project_root) |
| 196 | |
| 197 | if json_output: |
| 198 | typer.echo(json.dumps(report, indent=2)) |
| 199 | else: |
| 200 | _print_integration_status_report(report) |
| 201 | |
| 202 | if report["status"] == "error": |
| 203 | raise typer.Exit(1) |
| 204 | |
| 205 | |
| 206 | @integration_app.command("use") |
nothing calls this directly
no test coverage detected