Skip to content

v.category: Use CSV format instead of shell format #6132

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NishantBansal2003
Copy link
Contributor

Fixes: #6025

Since the print style is not key-value format when using the shell output, I changed the format from shell to CSV for the report, print, and layers options.

Also, the changes in the last commit were not originally mentioned in the issue, but I felt that the CSV output should include headers. So, I added headers for the above-mentioned options in a backward-compatible way i.e., if the -g flag is given without specifying the CSV format, headers will be skipped.

I also read some discussions where we want CSV output to be more aligned with JSON. So, for the print option, I updated the CSV format to better match the structure of the JSON output.

Additionally, for both the print and report options, I added a separator option that can be used with CSV.

Let me know if any (or all) of the changes in the last commit are useful. If not, I’ll revert them.

@github-actions github-actions bot added vector Related to vector data processing Python Related code is in Python C Related code is in C module tests Related to Test Suite labels Jul 28, 2025
@petrasovaa petrasovaa moved this to In Progress in GRASS JSON Outputs Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C module Python Related code is in Python tests Related to Test Suite vector Related to vector data processing
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

[Feat] v.category should have format=csv instead of shell for report
1 participant