Skip to content

Add installed info inventory#22141

Open
MikeMcQuaid wants to merge 1 commit intomainfrom
enhance-brew-info-with-readable-installed-inventor
Open

Add installed info inventory#22141
MikeMcQuaid wants to merge 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 2 times, most recently from c742c36 to 7dd0c09 Compare May 5, 2026 18:50
- 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.
@MikeMcQuaid MikeMcQuaid force-pushed the enhance-brew-info-with-readable-installed-inventor branch 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
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.

2 participants