Skip to content

Change handle API to be --json safe #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 2, 2025
Merged

Change handle API to be --json safe #509

merged 4 commits into from
May 2, 2025

Conversation

pvdz
Copy link
Collaborator

@pvdz pvdz commented May 2, 2025

This is an effort to update most references that used to call the unsafe handleApiCall to not throw but handle the CResult flow instead. This makes it friendly for consumption with --json.

There are some old cases left and the non-sdk cases are a bit of a head ache due to typing. We'll fix them forward.

@pvdz pvdz requested a review from jdalton May 2, 2025 15:14
@pvdz pvdz merged commit c21ac39 into main May 2, 2025
14 checks passed
@pvdz pvdz deleted the handleapisafe branch May 2, 2025 15:26
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.

2 participants