Skip to content

feat(cli): add WithHTTPClient injection, separate cli module#23

Merged
odsod merged 1 commit intomainfrom
odsod/push-ynkrwsspqoms
Mar 22, 2026
Merged

feat(cli): add WithHTTPClient injection, separate cli module#23
odsod merged 1 commit intomainfrom
odsod/push-ynkrwsspqoms

Conversation

@odsod
Copy link
Member

@odsod odsod commented Mar 22, 2026

  • export DebugTransport with lazy Enabled *bool for embedding
  • add WithHTTPClient option, remove WithDebug from client
  • move --debug flag from cli package to standalone main.go
  • create separate cli/go.mod to prevent cobra leaking into SDK
  • update cmd/mbz/go.mod to depend on cli submodule
  • document embedding pattern in AGENTS.md

- export DebugTransport with lazy Enabled *bool for embedding
- add WithHTTPClient option, remove WithDebug from client
- move --debug flag from cli package to standalone main.go
- create separate cli/go.mod to prevent cobra leaking into SDK
- update cmd/mbz/go.mod to depend on cli submodule
- document embedding pattern in AGENTS.md
@odsod odsod force-pushed the odsod/push-ynkrwsspqoms branch from 0114b41 to 30ffee9 Compare March 22, 2026 18:53
@odsod odsod merged commit ce04a0e into main Mar 22, 2026
1 check passed
@odsod odsod deleted the odsod/push-ynkrwsspqoms branch March 22, 2026 18:57
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