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:
Connor Peet
2023-10-08 17:18:22 -07:00
committed by GitHub
parent bd41b74fd1
commit 2e37be2160
6 changed files with 48 additions and 14 deletions

View File

@@ -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