mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-01 22:20:21 +00:00
Adopt Terrapin / msrustup for the CLI (#188732)
* cli: use terrapin for cli builds * update rust to 1.70 to allow ado artifacts feed on windows * apparently manaul cargo login is required * use msrustup * rustup is no longer user * update to 1.73 * add rust oss install
This commit is contained in:
@@ -118,7 +118,7 @@ mod tests {
|
||||
"themes",
|
||||
"--show-versions",
|
||||
];
|
||||
let cli = try_parse_legacy(args.into_iter()).unwrap();
|
||||
let cli = try_parse_legacy(args).unwrap();
|
||||
|
||||
if let Some(Commands::Extension(extension_args)) = cli.subcommand {
|
||||
if let ExtensionSubcommand::List(list_args) = extension_args.subcommand {
|
||||
@@ -145,7 +145,7 @@ mod tests {
|
||||
"--pre-release",
|
||||
"--force",
|
||||
];
|
||||
let cli = try_parse_legacy(args.into_iter()).unwrap();
|
||||
let cli = try_parse_legacy(args).unwrap();
|
||||
|
||||
if let Some(Commands::Extension(extension_args)) = cli.subcommand {
|
||||
if let ExtensionSubcommand::Install(install_args) = extension_args.subcommand {
|
||||
@@ -169,7 +169,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_parses_uninstall_extension() {
|
||||
let args = vec!["code", "--uninstall-extension", "connor4312.codesong"];
|
||||
let cli = try_parse_legacy(args.into_iter()).unwrap();
|
||||
let cli = try_parse_legacy(args).unwrap();
|
||||
|
||||
if let Some(Commands::Extension(extension_args)) = cli.subcommand {
|
||||
if let ExtensionSubcommand::Uninstall(uninstall_args) = extension_args.subcommand {
|
||||
@@ -196,7 +196,7 @@ mod tests {
|
||||
"--extensions-dir",
|
||||
"bar",
|
||||
];
|
||||
let cli = try_parse_legacy(args.into_iter()).unwrap();
|
||||
let cli = try_parse_legacy(args).unwrap();
|
||||
|
||||
if let Some(Commands::Extension(extension_args)) = cli.subcommand {
|
||||
assert_eq!(
|
||||
@@ -223,7 +223,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_status() {
|
||||
let args = vec!["code", "--status"];
|
||||
let cli = try_parse_legacy(args.into_iter()).unwrap();
|
||||
let cli = try_parse_legacy(args).unwrap();
|
||||
|
||||
if let Some(Commands::Status) = cli.subcommand {
|
||||
// no-op
|
||||
|
||||
Reference in New Issue
Block a user