Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
brew lgtm(style, typechecking and tests) with your changes locally?Changes
--descflag tobrew listto print descriptions for the selected formulae and/or casks.brew list --json=v2so each formula and cask entry includes adescfield.output_json_v2formula selection logic to remove a duplicated branch.Homebrew::Cmd::List::Argsexposesdesc?.Motivation
I'm working on a multi package manager project, and noticed certain data was straightforward to obtain via the following commands:
pkgin avail||pkgin listport info --name --description allPreviously, the closest option was
brew info --eval-all --json=v2, which includes a lot ofextra data. The new
brew listbehavior gives:Human-readable descriptions:
(--eval-all = all packages whether installed or not)I think it is a useful addition to Homebrew, can be used to pipe into other commands in useful ways. After my initial introduction to the macOS platform a couple years ago, and Homebrew as well. I've an avid Homebrew user ever since and I am pleased to contribute to Homebrew!
Note:
Testing