Skip to content

Add installed info inventory#22141

Merged
MikeMcQuaid merged 1 commit intomainfrom
enhance-brew-info-with-readable-installed-inventor
May 7, 2026
Merged

Add installed info inventory#22141
MikeMcQuaid merged 1 commit intomainfrom
enhance-brew-info-with-readable-installed-inventor

Conversation

@MikeMcQuaid
Copy link
Copy Markdown
Member

Requested in our user survey.

  • Let brew info --installed show a readable audit without requiring --json and external filtering.
  • Preserve the existing --json --installed path by keeping JSON handling ahead of the new table rendering.
  • Cover formulae, casks and Tab install intent so request and dependency reasons remain visible.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them? Performance claims (e.g. "this is faster") must include Hyperfine benchmarks.
  • Have you written new tests (excluding integration tests) for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes. Non-maintainers may only have one AI-assisted/generated PR open at a time.

OpenAI Codex xhigh with manual review and testing.


@MikeMcQuaid MikeMcQuaid marked this pull request as ready for review May 5, 2026 18:09
Copilot AI review requested due to automatic review settings May 5, 2026 18:09
@MikeMcQuaid MikeMcQuaid marked this pull request as draft May 5, 2026 18:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --installed print a readable table of installed formulae and casks (including install intent/reason and source metadata).
  • Keep --json --installed behavior 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.

Comment thread Library/Homebrew/cmd/info.rb Outdated
Comment thread Library/Homebrew/cmd/info.rb Outdated
@MikeMcQuaid MikeMcQuaid force-pushed the enhance-brew-info-with-readable-installed-inventor branch 3 times, most recently from 7dd0c09 to d8487ee Compare May 5, 2026 19:00
@MikeMcQuaid MikeMcQuaid marked this pull request as ready for review May 6, 2026 07:17
@MikeMcQuaid MikeMcQuaid force-pushed the enhance-brew-info-with-readable-installed-inventor branch from d8487ee to 5a883eb Compare May 7, 2026 08:47
- 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.
- Omit missing cask descriptions instead of printing a
  placeholder.
- Use recorded `Tab` install intent only when present so older
  receipts do not appear as dependencies.
@MikeMcQuaid MikeMcQuaid force-pushed the enhance-brew-info-with-readable-installed-inventor branch from 5a883eb to 8ca9d3c Compare May 7, 2026 09:02
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit af83538 May 7, 2026
37 checks passed
@MikeMcQuaid MikeMcQuaid deleted the enhance-brew-info-with-readable-installed-inventor branch May 7, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants