Skip to content

chore: fix debug flag for commands generated from SDK#38

Merged
ctreatma merged 1 commit intomainfrom
fix-debug-flag
Dec 11, 2025
Merged

chore: fix debug flag for commands generated from SDK#38
ctreatma merged 1 commit intomainfrom
fix-debug-flag

Conversation

@ctreatma
Copy link
Contributor

@ctreatma ctreatma commented Nov 20, 2025

The --debug flag is not wired up in commands that are generated with make onboard. While investigating that issue, I also uncovered that the code to create an authenticated client at command execution time was not in use.

This fills in the missing pieces to define the --debug flag and create an authenticated, potentially-debug-enabled HTTP client at runtime.

As part of this the API clients defined in internal/api/api.go were refactored to use a transport for injecting common headers so that the Metal client can be reused by the metalv1 subcommand.

This is dependent on #34 and is in draft until that PR makes it through review.

@ctreatma ctreatma force-pushed the fix-debug-flag branch 2 times, most recently from 41d4fb0 to da8b7d5 Compare November 21, 2025 21:44
@ctreatma ctreatma marked this pull request as ready for review December 2, 2025 20:48
@ctreatma ctreatma merged commit 4f16b0e into main Dec 11, 2025
4 checks passed
@ctreatma ctreatma deleted the fix-debug-flag branch December 11, 2025 17:11
@github-actions
Copy link

This PR is included in version 0.3.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