-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Command improvements for ergonomics and error handling #3362
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
Open
ijackson
wants to merge
34
commits into
rust-lang:master
Choose a base branch
from
ijackson:command
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
2a26454
Propose Command improvements
ijackson 9a4fc34
Apply rust tag to example
ijackson 89705df
Discuss some alternatives around SubprocessError
ijackson 38b9c2a
Add rust tags to many other code blocks
ijackson 2ff775e
Use /nonexistent rather than /dev/enoent
ijackson 71583a4
get_output gives one string, not a Vec
ijackson 30a0106
get_output_line gives one string, not a Vec
ijackson 36b59ca
Fix typo
ijackson 57f63d7
Add lint suggestion to stderr handling default
ijackson bbd287d
Make SubprocessError be a transparent struct
ijackson 79d0d25
Promote `just_status` to current proposed, from future
ijackson 84e4c78
Rename to read_stdout_*
ijackson 92ef0e7
Rename to ProcessError
ijackson d696820
Document behaviour of read_stdout_line with no output at all
ijackson 024e8ca
Cross-reference for EOF and exit wait of read_stdout{,_line}
ijackson 07ffa9f
Rename to ChildOutputStream
ijackson 8e96f69
Move deprecation of .output() to Future possibilities
ijackson cd1c96d
Document Error impl cause() behaviour
ijackson 80f1496
Discuss sensitive command line arguments
ijackson 9d8a2a4
Discuss combine-and-interleave of stdout and stderr
ijackson e16f199
Use read_stdout for the bytes version
ijackson 92ee567
Move read_stdout_line to Future possibilities
ijackson b8c623c
Make error fields pub
ijackson d94ad5d
Discuss status of the various ProcessError functions
ijackson ac61312
Make SubprocessError not be Clone
ijackson 732e555
Propose adding a docs warning to Command.output()
ijackson 2292b56
Fix typo
ijackson 9167ef5
Expand on reasoning for ProcessError::Default
ijackson 561cb3f
Do a missed rename
ijackson 0103012
Slightly weaken assertion about stdout/stderr demux
ijackson efa40c2
Add note about portability to comments about command lines
ijackson 37c4699
Expand on examples of why we want external ProcessError construction
ijackson 3f8db6e
Introduce other_error replacing communication_error
ijackson a967e0f
Introduce other_error replacing communication_error (clarify)
ijackson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add lint suggestion to stderr handling default
Co-authored-by: Josh Triplett <[email protected]>
- Loading branch information
commit 57f63d77236d77dc8ab07e00faddced08189e76b
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.