add cli update-extensions prototype

This commit is contained in:
samhanic
2023-12-03 14:25:40 +01:00
parent dc226d2616
commit 74c419b5bd
14 changed files with 46 additions and 5 deletions

View File

@@ -60,6 +60,7 @@ pub fn try_parse_legacy(
// Now translate them to subcommands.
// --list-extensions -> ext list
// --update-extensions -> update
// --install-extension=id -> ext install <id>
// --uninstall-extension=id -> ext uninstall <id>
// --status -> status
@@ -87,6 +88,14 @@ pub fn try_parse_legacy(
})),
..Default::default()
})
} else if let Some(_exts) = args.remove("update-extensions") {
Some(CliCore {
subcommand: Some(Commands::Extension(ExtensionArgs {
subcommand: ExtensionSubcommand::Update,
desktop_code_options,
})),
..Default::default()
})
} else if let Some(exts) = args.remove("uninstall-extension") {
Some(CliCore {
subcommand: Some(Commands::Extension(ExtensionArgs {