Add installed info inventory#22141
Open
MikeMcQuaid wants to merge 1 commit intomainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a human-readable installed inventory mode to brew info --installed, aligning CLI output with survey feedback while preserving the existing JSON output path when --json is provided.
Changes:
- Make
brew info --installedprint a readable table of installed formulae and casks (including install intent/reason and source metadata). - Keep
--json --installedbehavior intact by handling JSON output before the new table rendering. - Update manpage/docs/shell completions and add unit tests covering the new inventory output.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
Library/Homebrew/cmd/info.rb |
Implements the new human-readable inventory output for --installed and updates the option description. |
Library/Homebrew/test/cmd/info_spec.rb |
Adds tests asserting the installed inventory output for formulae and casks. |
manpages/brew.1 |
Updates the --installed documentation to describe the new human-readable inventory behavior. |
docs/Manpage.md |
Mirrors the updated --installed documentation for the website manpage. |
completions/zsh/_brew |
Updates --installed completion help text to match new behavior. |
completions/fish/brew.fish |
Updates --installed completion help text to match new behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c742c36 to
7dd0c09
Compare
- Let `brew info --installed` show a readable audit without requiring `--json` and external filtering. - Use slim `brew info`-style output by default for installed groups while keeping full details behind `--verbose`. - Fold descriptions into the slim title and reuse installed status markers for `brew desc` cask output. - Use recorded `Tab` install intent only when present so older receipts do not appear as dependencies.
7dd0c09 to
d8487ee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Requested in our user survey.
brew info --installedshow a readable audit without requiring--jsonand external filtering.--json --installedpath by keeping JSON handling ahead of the new table rendering.Tabinstall intent so request and dependency reasons remain visible.brew lgtm(style, typechecking and tests) with your changes locally?OpenAI Codex xhigh with manual review and testing.