mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
committed by
GitHub
parent
ded87f9d8e
commit
4920694ece
@@ -85,6 +85,8 @@ pub fn try_parse_legacy(
|
||||
subcommand: ExtensionSubcommand::Install(InstallExtensionArgs {
|
||||
id_or_path: exts,
|
||||
pre_release: args.contains_key("pre-release"),
|
||||
donot_include_pack_and_dependencies: args
|
||||
.contains_key("do-not-include-pack-dependencies"),
|
||||
force: args.contains_key("force"),
|
||||
}),
|
||||
desktop_code_options,
|
||||
|
||||
@@ -293,6 +293,9 @@ impl ExtensionSubcommand {
|
||||
if args.pre_release {
|
||||
target.push("--pre-release".to_string());
|
||||
}
|
||||
if args.donot_include_pack_and_dependencies {
|
||||
target.push("do-not-include-pack-dependencies".to_string());
|
||||
}
|
||||
if args.force {
|
||||
target.push("--force".to_string());
|
||||
}
|
||||
@@ -333,6 +336,10 @@ pub struct InstallExtensionArgs {
|
||||
#[clap(long)]
|
||||
pub pre_release: bool,
|
||||
|
||||
/// Don't include installing pack and dependencies of the extension
|
||||
#[clap(long)]
|
||||
pub donot_include_pack_and_dependencies: bool,
|
||||
|
||||
/// Update to the latest version of the extension if it's already installed.
|
||||
#[clap(long)]
|
||||
pub force: bool,
|
||||
|
||||
@@ -67,6 +67,7 @@ pub struct CodeServerArgs {
|
||||
pub show_versions: bool,
|
||||
pub category: Option<String>,
|
||||
pub pre_release: bool,
|
||||
pub donot_include_pack_and_dependencies: bool,
|
||||
pub force: bool,
|
||||
pub start_server: bool,
|
||||
// connection tokens
|
||||
|
||||
Reference in New Issue
Block a user