Output stats command results in NSV format#7
Merged
Conversation
Use nsv::encode to produce a 2-column NSV table (key, value) instead of ad-hoc "key: value" lines, making the output machine-readable and self-consistent with the tool's own format. https://claude.ai/code/session_01UNoSXqMRouTeNhG1T4PYW3
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.
Summary
Changed the
statscommand to output structural statistics about NSV data in NSV format instead of plain text key-value pairs.Key Changes
println!statements with structured data that is encoded using thensv::encode()functionImplementation Details
The statistics data is constructed as a vector of vectors, where each inner vector represents a row with two columns: the statistic name and its value. This structured format is then passed to
nsv::encode()to produce properly formatted NSV output, making the stats command output consistent with the library's data format.https://claude.ai/code/session_01UNoSXqMRouTeNhG1T4PYW3