Repository navigation
feat: show only what you installed, hide dependencies by default - #4
Merged
Merged
Conversation
On a real machine 127 of 153 formulas were installed as dependencies (codecs, libraries, ...), burying the 26 the user chose. - hide formulas installed only as a dependency (Homebrew's installed_on_request flag) and count them at the bottom - --all / -a shows everything, dependencies dimmed - formulas missing from brew info (untrusted taps) are shown: better a dependency too many than a hidden package you installed - unknown options exit 2 with a message - use a non-whitespace field separator (\x1f): with tabs, an empty description shifted the following fields - rename "Other / Dependencies" to "Other" - tests: dependencies, --all, -a, unknown option, per-parser checks (45 checks)
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.
Stacked on #3. Merge after it.
Why
brew listmixes what you installed with everything pulled in as a dependency. On a real machine:installed_on_request)brew info(untrusted tap / removed)Changes
127 dependencies hidden — run 'brewshelf --all' to show them.--all/-a: everything. Dependencies are dimmed, with a footer explaining it.brew infocan't be classified and are shown: better one dependency too many than hiding something you installed.installed_on_requestis more accurate thanbrew leaves: e.g.mpg123was installed by the user but is also a dependency, soleavesmisses it.\x1fas separator instead of a tab. Tabs are whitespace forread, so an empty description shifted the next field. There is a test that fails with tabs: a dependency without description.Tests (45 checks, was 28)
Hidden dependencies and count, dependency without description, unclassifiable formulas,
--all,-a, unknown option, and dependency hiding with both JSON parsers.