monoscope/docs/examples
Anthony Alaribe f61211f950 refactor(api,cli): address PR review feedback
- CLI error rendering via renderAPIError (HTTP code + body), drops raw Show output
- decodeBody no longer coerces empty body to "null"; surfaces explicit error
- httpExToError includes URL/method context across all branches
- runApplyResource counts per-file failures; exits non-zero only at the end
- Collapse redundant CLI wrappers; add withCfgMode, resourceIdPath helpers
- readYamlOrJson branches on .json extension for clearer parser errors
- Rename apiPost to apiPostUnauth to flag its device-code bootstrap role
- BulkFailure serialises as {id, error}; add Eq for test assertions
- Integration tests for bulk failure shape, unknown action 400, monitor 404
- CLI help-case test asserts invoked subcommand name appears in output
- Add --version subcommand test
- docs/cli.md: fix apply wording, drop anomalies bulk row, sync 48h TTL marker
History 2026-04-15 22:39:19 +02:00
..
dashboards refactor(api,cli): address PR review feedback 2026-04-15 22:39:19 +02:00
monitors refactor(api,cli): address PR review feedback 2026-04-15 22:39:19 +02:00