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

Support hiding columns in the CLI #1304

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

ikelos
Copy link
Member

@ikelos ikelos commented Oct 8, 2024

This adds the --hide-columns CLI option, where a list of columns can be specified that should NOT be output when the plugin results are produced. If all columns are hidden it will throw an exception rather than running. It is a CLI option (so must be before the plugin) and cannot be the last (or only) CLI option, or the plugin name will be treated as a column name.

This supercedes #1085, but it does NOT allow plugins to have any interaction about which columns to return (because it introduces too much scope for a task that is fundamentally a UI task).

Finally it also inverts the login in #1085 in that the parameter is --hide-columns rather than specify the explicit list of columns to display. I think this will be a more common use, although if one column starts with the same name as another column, it is impossible to hide just shorter column rather than both.

@atcuno, could you please let me know if you're happy with the logic being this way around and that this resolves the issue you had #1302?

Closes #1081, #1085.

@ikelos ikelos requested a review from atcuno October 8, 2024 22:07
@ikelos ikelos linked an issue Oct 8, 2024 that may be closed by this pull request
@ikelos ikelos merged commit 7b0cb4f into develop Oct 13, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants