Merged
Conversation
c3dcf27 to
cb138df
Compare
Contributor
Author
|
It would also be valuable to use Btw, seems like CI has hanged, but that seems to be fixed by #12. |
sharkdp
requested changes
Mar 1, 2022
Owner
sharkdp
left a comment
There was a problem hiding this comment.
Thank you very much. This looks great!
We'll do this some other time.
sharkdp
approved these changes
Mar 4, 2022
Owner
|
Thank you. Let me know when/if I should release a new version in order to integrate this into |
Contributor
Author
|
@sharkdp If you could make a release of bugreport when you get time that would be great. (I wanted to wait a bit to see if I could think of something else to do before a release but nothing has come to mind.) |
Owner
|
Yes, of course: https://crates.io/crates/bugreport/0.5.0 |
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.
The use case I have in mind is to add info about custom assets to bat. If we add this line to bat:
we will get output in
--diagnosticsthat look like this if custom assets are installed:and like this
or this
if no custom assets are installed.
I took some liberties in the structure and interface of the new collector.
new_with_title_from_local_variable()example in tests. That code does not work for e.g.FileContents.I still made the new collector appear in the right place in the module hierarchy though, as can be demonstrated with
cargo public-items:or just a quick look at the
cargo docHTML if you're old-school :)This is pretty bare-bones in terms of functionality (see docs in the code for limitations and idea for future improvements) but it should suit the bat use case well.