-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cli): rewrite
rustup (toolchain|update|(un)?install)
with …
…`clap-derive`
- Loading branch information
Showing
15 changed files
with
245 additions
and
241 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
2 changes: 1 addition & 1 deletion
2
tests/suite/cli-ui/rustup/rustup_component_cmd_add_cmd_help_flag_stdout.toml
This file contains 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
2 changes: 1 addition & 1 deletion
2
tests/suite/cli-ui/rustup/rustup_component_cmd_remove_cmd_help_flag_stdout.toml
This file contains 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
This file contains 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
This file contains 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
This file contains 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
28 changes: 14 additions & 14 deletions
28
tests/suite/cli-ui/rustup/rustup_toolchain_cmd_install_cmd_help_flag_stdout.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
bin.name = "rustup" | ||
args = ["toolchain","install","--help"] | ||
args = ["toolchain", "install", "--help"] | ||
stdout = """ | ||
... | ||
Install or update a given toolchain | ||
Usage: rustup[EXE] toolchain install [OPTIONS] <toolchain>... | ||
Usage: rustup[EXE] toolchain install [OPTIONS] <TOOLCHAIN>... | ||
Arguments: | ||
<toolchain>... Toolchain name, such as 'stable', 'nightly', or '1.8.0'. For more information see | ||
<TOOLCHAIN>... Toolchain name, such as 'stable', 'nightly', or '1.8.0'. For more information see | ||
`rustup help toolchain` | ||
Options: | ||
--profile <profile> [possible values: minimal, default, complete] | ||
-c, --component <components>... Add specific components on installation | ||
-t, --target <targets>... Add specific targets on installation | ||
--no-self-update Don't perform self update when running the`rustup toolchain | ||
install` command | ||
--force Force an update, even if some components are missing | ||
--allow-downgrade Allow rustup to downgrade the toolchain to satisfy your component | ||
choice | ||
--force-non-host Install toolchains that require an emulator. See | ||
https://github.com/rust-lang/rustup/wiki/Non-host-toolchains | ||
-h, --help Print help | ||
--profile <PROFILE> [possible values: minimal, default, complete] | ||
-c, --component <COMPONENT>... Add specific components on installation | ||
-t, --target <TARGET>... Add specific targets on installation | ||
--no-self-update Don't perform self update when running the `rustup toolchain | ||
install` command | ||
--force Force an update, even if some components are missing | ||
--allow-downgrade Allow rustup to downgrade the toolchain to satisfy your component | ||
choice | ||
--force-non-host Install toolchains that require an emulator. See | ||
https://github.com/rust-lang/rustup/wiki/Non-host-toolchains | ||
-h, --help Print help | ||
""" | ||
stderr = "" |
8 changes: 4 additions & 4 deletions
8
tests/suite/cli-ui/rustup/rustup_toolchain_cmd_link_cmd_help_flag_stdout.toml
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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