-
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 override
with clap-derive
- Loading branch information
Showing
8 changed files
with
83 additions
and
87 deletions.
There are no files selected for viewing
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
8 changes: 4 additions & 4 deletions
8
tests/suite/cli-ui/rustup/rustup_override_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
bin.name = "rustup" | ||
args = ["override","add","--help"] | ||
args = ["override", "add", "--help"] | ||
stdout = """ | ||
... | ||
Set the override toolchain for a directory | ||
Usage: rustup[EXE] override set [OPTIONS] <toolchain> | ||
Usage: rustup[EXE] override set [OPTIONS] <TOOLCHAIN> | ||
Arguments: | ||
<toolchain> Toolchain name, such as 'stable', 'nightly', '1.8.0', or a custom toolchain name. For | ||
<TOOLCHAIN> Toolchain name, such as 'stable', 'nightly', '1.8.0', or a custom toolchain name. For | ||
more information see `rustup help toolchain` | ||
Options: | ||
--path <path> Path to the directory | ||
--path <PATH> Path to the directory | ||
-h, --help Print help | ||
""" | ||
stderr = "" |
4 changes: 2 additions & 2 deletions
4
tests/suite/cli-ui/rustup/rustup_override_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
8 changes: 4 additions & 4 deletions
8
tests/suite/cli-ui/rustup/rustup_override_cmd_set_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,17 +1,17 @@ | ||
bin.name = "rustup" | ||
args = ["override","set","--help"] | ||
args = ["override", "set", "--help"] | ||
stdout = """ | ||
... | ||
Set the override toolchain for a directory | ||
Usage: rustup[EXE] override set [OPTIONS] <toolchain> | ||
Usage: rustup[EXE] override set [OPTIONS] <TOOLCHAIN> | ||
Arguments: | ||
<toolchain> Toolchain name, such as 'stable', 'nightly', '1.8.0', or a custom toolchain name. For | ||
<TOOLCHAIN> Toolchain name, such as 'stable', 'nightly', '1.8.0', or a custom toolchain name. For | ||
more information see `rustup help toolchain` | ||
Options: | ||
--path <path> Path to the directory | ||
--path <PATH> Path to the directory | ||
-h, --help Print help | ||
""" | ||
stderr = "" |
4 changes: 2 additions & 2 deletions
4
tests/suite/cli-ui/rustup/rustup_override_cmd_unset_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