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.
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 thelist
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 thangeoips list plugins
). Currently, as a workaround, you can rungeoips 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
geoips.commandline.geoips_command:GeoipsExecutableCommand:_get_headers_by_command
Checklist for Completion