-
Notifications
You must be signed in to change notification settings - Fork 2k
Allow customization of conda list fields
#14781
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
Conversation
CodSpeed Performance ReportMerging #14781 will not alter performanceComparing Summary
|
jezdez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs separation between UI and implementation details
|
|
||
| #: The default `conda list` columns | ||
| DEFAULT_CONDA_LIST_FIELDS = ("name", "version", "build", "channel_name") | ||
| CONDA_LIST_FIELDS = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
| def schannel(self): | ||
| return self.channel_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wooot!
|
Thanks @jezdez. We'll need a reapprove here after merging the conflicts. |
|
We'll probably run into AnacondaRecipes/pip-feedstock#36 now 😬 |
Description
Part of #14070
Adds a
--fieldsCLI flag toconda listto control the default output:As a side effect, it also solves the column width, which is not hardcoded anymore and instead tracks the maximum width in the list.
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?