Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): cli module feature is abnormal #892

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions apps/ll-cli/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,7 @@ ll-cli run org.deepin.demo -- bash -x /path/to/bash/script)"));
->group(CliAppManagingGroup)
->fallthrough();
cliKill->usage(_("Usage: ll-cli kill [OPTIONS] APP"));
cliKill
->add_option("APP",
options.appid,
_("Specify the running application"))
cliKill->add_option("APP", options.appid, _("Specify the running application"))
->required()
->check(validatorString);

Expand Down Expand Up @@ -341,9 +338,10 @@ ll-cli install stable:org.deepin.demo/0.0.0.1/x86_64
_("Specify the application ID, and it can also be a .uab or .layer file"))
->required()
->check(validatorString);
cliInstall->add_option("--module", options.module, _("Install a specify module"))
->type_name("MODULE")
->check(validatorString);
// FIXME: The module function is not normal, temporarily blocked
// cliInstall->add_option("--module", options.module, _("Install a specify module"))
// ->type_name("MODULE")
// ->check(validatorString);
cliInstall->add_flag("--force", options.forceOpt, _("Force install the application"));
cliInstall->add_flag("-y", options.confirmOpt, _("Automatically answer yes to all questions"));

Expand All @@ -359,9 +357,10 @@ ll-cli install stable:org.deepin.demo/0.0.0.1/x86_64
cliUninstall->add_option("APP", options.appid, _("Specify the applications ID"))
->required()
->check(validatorString);
cliUninstall->add_option("--module", options.module, _("Uninstall a specify module"))
->type_name("MODULE")
->check(validatorString);
// FIXME: The module function is not normal, temporarily blocked
// cliUninstall->add_option("--module", options.module, _("Uninstall a specify module"))
// ->type_name("MODULE")
// ->check(validatorString);
cliUninstall->add_flag("--prune", pruneOpt, "Remove all unused modules")->group(CliHiddenGroup);
cliUninstall->add_flag("--all", allOpt, "Uninstall all modules")->group(CliHiddenGroup);

Expand Down
Loading