-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
2,232 additions
and
1,607 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,8 +272,6 @@ pub enum ExtensionSubcommand { | |
Uninstall(UninstallExtensionArgs), | ||
/// Update the installed extensions. | ||
Update, | ||
/// Download an extension. | ||
Download(DownloadExtensionArgs), | ||
} | ||
|
||
impl ExtensionSubcommand { | ||
|
@@ -307,16 +305,6 @@ impl ExtensionSubcommand { | |
ExtensionSubcommand::Update => { | ||
target.push("--update-extensions".to_string()); | ||
} | ||
ExtensionSubcommand::Download(args) => { | ||
for id in args.id.iter() { | ||
target.push(format!("--download-extension={id}")); | ||
} | ||
if let Some(location) = &args.location { | ||
if !location.is_empty() { | ||
target.push(format!("--location={location}")); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
@@ -359,21 +347,6 @@ pub struct UninstallExtensionArgs { | |
pub id: Vec<String>, | ||
} | ||
|
||
#[derive(Args, Debug, Clone)] | ||
pub struct DownloadExtensionArgs { | ||
/// Id of the extension to download. The identifier of an | ||
/// extension is '${publisher}.${name}'. Should provide '--location' to specify the location to download the VSIX. | ||
/// To download a specific version provide '@${version}'. | ||
/// For example: '[email protected]'. | ||
#[clap(name = "ext-id")] | ||
pub id: Vec<String>, | ||
|
||
/// Specify the location to download the VSIX. | ||
#[clap(long, value_name = "location")] | ||
pub location: Option<String>, | ||
|
||
} | ||
|
||
#[derive(Args, Debug, Clone)] | ||
pub struct VersionArgs { | ||
#[clap(subcommand)] | ||
|
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
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
Oops, something went wrong.