feat: Add global YAML output format support#89
Open
Vaishnav88sk wants to merge 4 commits into
Open
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6fd4e81863
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
ec5b8f7 to
10888c8
Compare
niv-hertz
requested changes
May 11, 2026
niv-hertz
left a comment
Contributor
There was a problem hiding this comment.
Please revert the Cargo.lock change, and also re-open this PR with signed commits and I'll approve:
74eb9af to
865764e
Compare
Add `yaml` as a supported output format via `-o yaml` / `--output yaml`. Changes: - `src/config.rs`: add `Yaml` variant to `OutputFormat` enum and update `as_str()` - `src/render.rs`: implement `format_yaml`, `render_yaml`, `format_yaml_auto`, `render_yaml_auto` helpers; add unit tests for parity with JSON - All command modules under `src/commands/`: add `OutputFormat::Yaml` match arms so every output site is exhaustively handled (actions, alerts, api_keys, connectors, contextual_data, custom_enrichments, dashboards, data_archive, data_usage, dataprime, e2m, enrichments, extensions, incidents, integrations, ip_access, metrics, notification_testing, olly, parsing_rules, presets, recording_rules, retentions, roles, routers, saml, scopes, search_fields, slos, suppression_rules, tco_policies, team_groups, users, views, webhooks) Closes coralogix#78
2fb8be9 to
08c54d1
Compare
Author
Author
|
@yonbek waiting for approval |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #78
This PR introduces global YAML output format support to the CLI. Users can now pass
-o yamlor--output yamlto serialize command responses into YAML format, significantly improving the UX for infrastructure engineers and GitOps workflows.Files Modified:
src/config.rs: AddedYamlto theOutputFormatenum.src/render.rs: Implementedrender_yaml,format_yaml,render_yaml_auto, andformat_yaml_auto. Added unit tests to verify YAML serialization parity with JSON.src/commands/**/*.rs(Dashboards, Dataprime, API Keys, Scopes, Olly, Views, Roles, SLOs, Metrics, etc.): Wired theOutputFormat::Yamlbranch into all command execution match arms.Verification