-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to exclude based on source names #234
base: main
Are you sure you want to change the base?
Conversation
@haberman apart from the merge conflict, anything here that should be improved? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, just a few comments.
@@ -1940,6 +1959,8 @@ USAGE: bloaty [OPTION]... FILE... [-- BASE_FILE...] | |||
--list-sources Show a list of available sources and exit. | |||
--source-filter=PATTERN | |||
Only show keys with names matching this pattern. | |||
--not-source-filter=PATTERN | |||
Exclude keys with names matching this pattern. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should document what happens if a name matches both --source-filter
and --exclude-source-filter
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote a test that shows what happens, basically nothing is output other than the fact that everything is omitted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been added the the help text.
3f2ed6d
to
d59d47d
Compare
d59d47d
to
3865005
Compare
#203
This includes a testcase for both include and exclude.