NRLMMD-GEOIPS / geoips

Main Geolocated Information Processing System code base with basic functionality enabled.
https://nrlmmd-geoips.github.io/geoips/
Other
13 stars 10 forks source link

Discuss how we want to expose available ``columns`` in list command #640

Open evrose54 opened 2 weeks ago

evrose54 commented 2 weeks ago

Requested Update

Description

In #465 we added an optional argument to list commands called --columns. When this optional argument is used, we can specify which columns we'd like in the list output rather than a default set of columns. This functionality is nice, however we have yet to implement a good method which exposes available columns as the default set depends on the exact command that was ran (ie. geoips list packages has a different set out columns than geoips list plugins). Currently, as a workaround, you can run geoips list <cmd> --columns help which will expose the set of columns available for <cmd>.

We'd prefer an easier way to expose what columns are available for each list command. Maybe we can just create a new optional argument for list commands (such as geoips list <cmd> --available-columns, or something along those lines) which will expose the set of columns that can be outputted for each command.

Background and Motivation

This issue stems from this comment on PR #465.

Alternative Solutions

Leave the code as is.

Code to demonstrate issue

Checklist for Completion