Skip to content
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

[nexus] support bundle diag commands should be saved in json #7462

Open
wants to merge 2 commits into
base: spr/papertigers/main.nexus-support-bundle-diag-commands-should-be-saved-in-json
Choose a base branch
from

Conversation

papertigers
Copy link
Contributor

@papertigers papertigers commented Jan 31, 2025

Diagnostic commands now output the json serialized value rather than the debug output for the inner type.

This is on top of:

Created using spr 1.3.6-beta.1
)
.await?;
let json = serde_json::to_string(&output)?;
tokio::fs::write(path.join(format!("{command}.txt")), json).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use a .json suffix here?

Related: Do we want the error types to be serialized to JSON too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e610f80

I am inclined to leave the error file alone as I feel like most of the structured output parsing will happen on the "success" path where there may be multiple commands that have ran with output that you would like to filter through.

Created using spr 1.3.6-beta.1
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.

3 participants