Skip to content

feat: add debug logging support for api subcommand#34

Merged
ctreatma merged 1 commit intomainfrom
api-subcommand-debug
Dec 2, 2025
Merged

feat: add debug logging support for api subcommand#34
ctreatma merged 1 commit intomainfrom
api-subcommand-debug

Conversation

@ctreatma
Copy link
Contributor

@ctreatma ctreatma commented Nov 18, 2025

This adds a --debug flag to the api subcommand so that users can dump HTTP request and response details and have an easier time diagnosing any errors that happen while using the CLI. The debug feature uses the debugging HTTP transport that was introduced in #27. In order to make the debug feature work for any path passed in to the api subcommand, the Metal and portal clients had to be updated to accept the same options that are used by the standard API client.

@ctreatma ctreatma force-pushed the api-subcommand-debug branch from accd458 to 356ee08 Compare November 26, 2025 19:30
@ctreatma ctreatma merged commit 3e90020 into main Dec 2, 2025
4 checks passed
@ctreatma ctreatma deleted the api-subcommand-debug branch December 2, 2025 20:05
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

This PR is included in version 0.2.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant