Allow testing of individual streams #64
Merged
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.
Closes #51. This is a breaking change.
This PR adds the ability to test individual output streams for validity. This is one particular approach - see the end of this PR for another non-breaking proposed approach.
This exposes the new API as:
So the only change necessary to migrate would be to change
to either
or simply
So as I mentioned earlier, this is one of two possible ways we can approach this problem. In my opinion, this PR is the correct way to approach the problem, albeit a breaking change.
However, the alternative would be to introduce a second script that can be included directly:
Though philosophically that is a bandaid fix, I foresee this package going away sometime within the next few years due to progress in the TTY realm, so I feel much less strongly about the approach itself.
If this is the route we want to take as opposed to this PR, that's totally fine - just let me know.