8000 Tabular Outputs - Expand support for "all columns" (and other shortcuts) by totten · Pull Request #213 · civicrm/cv · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tabular Outputs - Expand support for "all columns" (and other shortcuts) #213

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 12 commits into from
Sep 11, 2024

Conversation

totten
Copy link
Member
@totten totten commented Sep 11, 2024

Synopsis

Many subcommands produce some kind of tabular data-set for output. The default tables are designed to be generally useful. But for more advanced cases, the output can be customized to use particular columns and output-formats.

This branches provides more options to help with those advanced. In particular, the option -a (--all-columns) can help inspect output. Additionally, it reduces some duplicate code to further standardize behavior of more commands.

## Print summary of extensions; then all details; then custom listings
cv ext:list
cv ext:list -a | less
cv ext:list --out=csv --columns=key,version
cv ext:list -R -I --columns=downloadUrl | grep githu

## Print summary of settings; then all details; then custom listings
cv vget
cv vget -a | less
cv vget --out=csv --columns=key,value,meta.default

(Note that -a is a bit different from -v. "Verbose" output enables more logging throughout the execution of the job. "All Columns" enables a full view of the final result-set.)

Technical Details

This includes some work on extractions, refactorings, helpers. The big one is sendStandardTable(). This is like sendTable() used here-to-fore, but it enforces some standardized behaviors for column-selection and sorting.

@totten totten merged commit a5e6a41 into civicrm:master Sep 11, 2024
1 check passed
@totten totten deleted the master-shortcuts branch September 11, 2024 10:36
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.

1 participant
0