-
Notifications
You must be signed in to change notification settings - Fork 891
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
Shell completions for Cargo #1646
Commits on Mar 16, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8371c20 - Browse repository at this point
Copy the full SHA 8371c20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 147f46d - Browse repository at this point
Copy the full SHA 147f46dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50c0f3e - Browse repository at this point
Copy the full SHA 50c0f3eView commit details -
Move completion command handler to separate function
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4ab5ff2 - Browse repository at this point
Copy the full SHA 4ab5ff2View commit details -
Add optional "command" argument to rustup completion
This "command" argument allows rustup to output the completion information of more than just rustup. In this case it adds a cargo completion script. Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e8ade2c - Browse repository at this point
Copy the full SHA e8ade2cView commit details -
For cargo completion script, output line to source real script
This allows the cargo script for the current default toolchain to be called, and if the script is ever updated the user won't have to maually update their completion script after updating Rust. Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 634eba5 - Browse repository at this point
Copy the full SHA 634eba5View commit details -
Add information to the help output about bash completions
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dc6baeb - Browse repository at this point
Copy the full SHA dc6baebView commit details -
Configuration menu - View commit details
-
Copy full SHA for af17f18 - Browse repository at this point
Copy the full SHA af17f18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a4b260 - Browse repository at this point
Copy the full SHA 4a4b260View commit details
Commits on Mar 20, 2019
-
Hold all programs with completions in an array
This removes the duplication between the `variants` and `from_str` implementations.
Configuration menu - View commit details
-
Copy full SHA for 02d63fc - Browse repository at this point
Copy the full SHA 02d63fcView commit details
Commits on Mar 30, 2019
-
cli: Rework completion error handling
Moves the error reporting from the completion function to the standard error handling mechanism. CompletionCommand had to be made fully public, not that this matters for a binary target. That said, this could have been prevented by transforming the CompletionCommand into its String form at the error site rather than at the reporting site. It was chosen to go with this method as stringly-typed interfaces are generally bad.
Configuration menu - View commit details
-
Copy full SHA for 8a189fa - Browse repository at this point
Copy the full SHA 8a189faView commit details -
test: mock: Add expect_ok_eq function
Compares two different command invocations and panics if their return code and stdout/stderr don't match.
Configuration menu - View commit details
-
Copy full SHA for 9bb56d0 - Browse repository at this point
Copy the full SHA 9bb56d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0312b11 - Browse repository at this point
Copy the full SHA 0312b11View commit details