From 1cf569e62daa1d80c688c424b40bc87e4f9db19e Mon Sep 17 00:00:00 2001 From: myml Date: Wed, 27 Nov 2024 17:48:06 +0800 Subject: [PATCH] feat: add list and remove commands to builder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit builder添加应用列表和删除应用的命令, 便于开发者清理构建缓存 --- apps/ll-builder/src/main.cpp | 23 +++++ .../src/linglong/builder/linglong_builder.cpp | 57 +++++++++++- .../src/linglong/builder/linglong_builder.h | 17 ++-- po/en_GB.po | 84 ++++++++++------- po/en_US.po | 84 ++++++++++------- po/es.po | 92 +++++++++++-------- po/linyaps.pot | 86 ++++++++++------- po/zh_CN.po | 84 ++++++++++------- 8 files changed, 345 insertions(+), 182 deletions(-) diff --git a/apps/ll-builder/src/main.cpp b/apps/ll-builder/src/main.cpp index a732f7fd0..5d310b7ea 100644 --- a/apps/ll-builder/src/main.cpp +++ b/apps/ll-builder/src/main.cpp @@ -276,6 +276,13 @@ You can report bugs to the linyaps team under this project: https://github.com/O ->group(hiddenGroup); buildRun->add_flag("--debug", debugMode, _("Run in debug mode (enable develop module)")); + auto buildList = commandParser.add_subcommand("list", _("List builded linyaps app")); + buildList->usage(_("Usage: ll-builder list [OPTIONS]")); + std::vector removeList; + auto buildRemove = commandParser.add_subcommand("remove", _("Remove builded linyaps app")); + buildRemove->usage(_("Usage: ll-builder remove [OPTIONS] [APP...]")); + buildRemove->add_option("APP", removeList); + // build export bool layerMode = false; std::string iconFile; @@ -816,6 +823,22 @@ You can report bugs to the linyaps team under this project: https://github.com/O return 0; } + if (buildList->parsed()) { + auto ret = linglong::builder::cmdListApp(repo); + if (!ret.has_value()) { + return -1; + } + return 0; + } + + if (buildRemove->parsed()) { + auto ret = linglong::builder::cmdRemoveApp(repo, removeList); + if (!ret.has_value()) { + return -1; + } + return 0; + } + std::cout << commandParser.help("", CLI::AppFormatMode::All); return 0; diff --git a/libs/linglong/src/linglong/builder/linglong_builder.cpp b/libs/linglong/src/linglong/builder/linglong_builder.cpp index b4fa480f9..5811a024e 100644 --- a/libs/linglong/src/linglong/builder/linglong_builder.cpp +++ b/libs/linglong/src/linglong/builder/linglong_builder.cpp @@ -42,9 +42,11 @@ #include #include +#include #include #include #include +#include #include #include #include @@ -271,7 +273,7 @@ utils::error::Result pullDependency(const package::FuzzyRefe auto tmpTask = service::PackageTask::createTemporaryTask(); auto partChanged = [&ref, module](const uint fetched, const uint requested) { - auto percentage = (uint)((((double)fetched) / requested) * 100); + auto percentage = (uint)((((double)fetched) / requested) * 100); auto progress = QString("(%1/%2 %3%)").arg(fetched).arg(requested).arg(percentage); printReplacedText(QString("%1%2%3%4 %5") .arg(ref->id, -25) // NOLINT @@ -400,6 +402,59 @@ utils::error::Result installModule(QStringList installRules, } // namespace +utils::error::Result cmdListApp(repo::OSTreeRepo &repo) +{ + LINGLONG_TRACE("cmd list app"); + auto list = repo.listLocal(); + if (!list.has_value()) { + return LINGLONG_ERR("list local pkg", list); + } + std::vector refs; + for (const auto &item : *list) { + auto ref = package::Reference::fromPackageInfo(item); + if (!ref.has_value()) { + continue; + } + refs.push_back(ref->toString().toStdString()); + } + std::sort(refs.begin(), refs.end()); + auto it = std::unique(refs.begin(), refs.end()); + refs.erase(it, refs.end()); + for (const auto &ref : refs) { + std::cout << ref << std::endl; + } + return LINGLONG_OK; +} + +utils::error::Result cmdRemoveApp(repo::OSTreeRepo &repo, std::vector refs) +{ + LINGLONG_TRACE("cmd remove app"); + for (const auto &ref : refs) { + auto r = package::Reference::parse(QString::fromStdString(ref)); + if (!r.has_value()) { + std::cerr << ref << ": " << r.error().message().toStdString() << std::endl; + continue; + } + auto modules = repo.getModuleList(*r); + for (const auto &module : modules) { + auto v = repo.remove(*r, module); + if (!v.has_value()) { + std::cerr << ref << ": " << v.error().message().toStdString() << std::endl; + continue; + } + } + } + auto v = repo.prune(); + if (!v.has_value()) { + std::cerr << v.error().message().toStdString(); + } + v = repo.mergeModules(); + if (!v.has_value()) { + std::cerr << v.error().message().toStdString(); + } + return LINGLONG_OK; +} + Builder::Builder(const api::types::v1::BuilderProject &project, const QDir &workingDir, repo::OSTreeRepo &repo, diff --git a/libs/linglong/src/linglong/builder/linglong_builder.h b/libs/linglong/src/linglong/builder/linglong_builder.h index 87428982a..31167324c 100644 --- a/libs/linglong/src/linglong/builder/linglong_builder.h +++ b/libs/linglong/src/linglong/builder/linglong_builder.h @@ -27,15 +27,18 @@ struct BuilderBuildOptions { // 兼容选项,在制作runtime时构建全量develop, 以兼容旧版本linglong-builder使用 // TODO 后续版本删除该选项 - bool fullDevelop {false}; - bool skipFetchSource {false}; - bool skipPullDepend {false}; - bool skipRunContainer {false}; - bool skipCommitOutput {false}; - bool skipCheckOutput {false}; - bool skipStripSymbols {false}; + bool fullDevelop{ false }; + bool skipFetchSource{ false }; + bool skipPullDepend{ false }; + bool skipRunContainer{ false }; + bool skipCommitOutput{ false }; + bool skipCheckOutput{ false }; + bool skipStripSymbols{ false }; }; +utils::error::Result cmdListApp(repo::OSTreeRepo &repo); +utils::error::Result cmdRemoveApp(repo::OSTreeRepo &repo, std::vector refs); + class Builder { public: diff --git a/po/en_GB.po b/po/en_GB.po index 23bd1ed19..015bc9ce2 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-23 17:02+0800\n" +"POT-Creation-Date: 2024-11-27 18:02+0800\n" "PO-Revision-Date: 2024-11-23 17:05+0800\n" "Last-Translator: deepiner, 2024\n" "Language-Team: LANGUAGE \n" @@ -350,7 +350,7 @@ msgid "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" msgstr "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" #. add repo sub command add -#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:334 +#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:341 msgid "Add a new repository" msgstr "Add a new repository" @@ -360,15 +360,15 @@ msgstr "Usage: ll-cli repo add [OPTIONS] NAME URL" #: ../apps/ll-cli/src/main.cpp:451 ../apps/ll-cli/src/main.cpp:461 #: ../apps/ll-cli/src/main.cpp:471 ../apps/ll-cli/src/main.cpp:478 -#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:336 -#: ../apps/ll-builder/src/main.cpp:346 ../apps/ll-builder/src/main.cpp:353 -#: ../apps/ll-builder/src/main.cpp:364 +#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:343 +#: ../apps/ll-builder/src/main.cpp:353 ../apps/ll-builder/src/main.cpp:360 +#: ../apps/ll-builder/src/main.cpp:371 msgid "Specify the repo name" msgstr "Specify the repo name" #: ../apps/ll-cli/src/main.cpp:454 ../apps/ll-cli/src/main.cpp:464 -#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:339 -#: ../apps/ll-builder/src/main.cpp:356 +#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:346 +#: ../apps/ll-builder/src/main.cpp:363 msgid "Url of the repository" msgstr "Url of the repository" @@ -377,7 +377,7 @@ msgid "Modify repository URL" msgstr "Modify repository URL" #. add repo sub command remove -#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:344 +#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:351 msgid "Remove a repository" msgstr "Remove a repository" @@ -386,7 +386,7 @@ msgid "Usage: ll-cli repo remove [OPTIONS] NAME" msgstr "Usage: ll-cli repo remove [OPTIONS] NAME" #. add repo sub command update -#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:351 +#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:358 msgid "Update the repository URL" msgstr "Update the repository URL" @@ -394,7 +394,7 @@ msgstr "Update the repository URL" msgid "Usage: ll-cli repo update [OPTIONS] NAME URL" msgstr "Usage: ll-cli repo update [OPTIONS] NAME URL" -#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:362 +#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:369 msgid "Set a default repository name" msgstr "Set a default repository name" @@ -403,7 +403,7 @@ msgid "Usage: ll-cli repo set-default [OPTIONS] NAME" msgstr "Usage: ll-cli repo set-default [OPTIONS] NAME" #. add repo sub command show -#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:369 +#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:376 msgid "Show repository information" msgstr "Show repository information" @@ -496,7 +496,7 @@ msgid "Usage: ll-builder build [OPTIONS] [COMMAND...]" msgstr "Usage: ll-builder build [OPTIONS] [COMMAND...]" #: ../apps/ll-builder/src/main.cpp:214 ../apps/ll-builder/src/main.cpp:257 -#: ../apps/ll-builder/src/main.cpp:284 ../apps/ll-builder/src/main.cpp:297 +#: ../apps/ll-builder/src/main.cpp:291 ../apps/ll-builder/src/main.cpp:304 msgid "File path of the linglong.yaml" msgstr "File path of the linglong.yaml" @@ -569,95 +569,111 @@ msgstr "Enter the container to execute command instead of running application" msgid "Run in debug mode (enable develop module)" msgstr "Run in debug mode (enable develop module)" +#: ../apps/ll-builder/src/main.cpp:279 +msgid "List builded linyaps app" +msgstr "List builded linyaps app" + +#: ../apps/ll-builder/src/main.cpp:280 +msgid "Usage: ll-builder list [OPTIONS]" +msgstr "Usage: ll-builder list [OPTIONS]" + #: ../apps/ll-builder/src/main.cpp:282 +msgid "Remove builded linyaps app" +msgstr "Remove builded linyaps app" + +#: ../apps/ll-builder/src/main.cpp:283 +msgid "Usage: ll-builder remove [OPTIONS] [APP...]" +msgstr "Usage: ll-builder remove [OPTIONS] [APP...]" + +#: ../apps/ll-builder/src/main.cpp:289 msgid "Export to linyaps layer or uab" msgstr "Export to linyaps layer or uab" -#: ../apps/ll-builder/src/main.cpp:283 +#: ../apps/ll-builder/src/main.cpp:290 msgid "Usage: ll-builder export [OPTIONS]" msgstr "Usage: ll-builder export [OPTIONS]" -#: ../apps/ll-builder/src/main.cpp:288 +#: ../apps/ll-builder/src/main.cpp:295 msgid "Uab icon (optional)" msgstr "Uab icon (optional)" -#: ../apps/ll-builder/src/main.cpp:291 +#: ../apps/ll-builder/src/main.cpp:298 msgid "Export to linyaps layer file" msgstr "Export to linyaps layer file" -#: ../apps/ll-builder/src/main.cpp:295 +#: ../apps/ll-builder/src/main.cpp:302 msgid "Push linyaps app to remote repo" msgstr "Push linyaps app to remote repo" -#: ../apps/ll-builder/src/main.cpp:296 +#: ../apps/ll-builder/src/main.cpp:303 msgid "Usage: ll-builder push [OPTIONS]" msgstr "Usage: ll-builder push [OPTIONS]" -#: ../apps/ll-builder/src/main.cpp:301 +#: ../apps/ll-builder/src/main.cpp:308 msgid "Remote repo url" msgstr "Remote repo url" -#: ../apps/ll-builder/src/main.cpp:304 +#: ../apps/ll-builder/src/main.cpp:311 msgid "Remote repo name" msgstr "Remote repo name" -#: ../apps/ll-builder/src/main.cpp:307 +#: ../apps/ll-builder/src/main.cpp:314 msgid "Push single module" msgstr "Push single module" -#: ../apps/ll-builder/src/main.cpp:312 +#: ../apps/ll-builder/src/main.cpp:319 msgid "Import linyaps layer to build repo" msgstr "Import linyaps layer to build repo" -#: ../apps/ll-builder/src/main.cpp:313 +#: ../apps/ll-builder/src/main.cpp:320 msgid "Usage: ll-builder import [OPTIONS] LAYER" msgstr "Usage: ll-builder import [OPTIONS] LAYER" -#: ../apps/ll-builder/src/main.cpp:314 ../apps/ll-builder/src/main.cpp:323 +#: ../apps/ll-builder/src/main.cpp:321 ../apps/ll-builder/src/main.cpp:330 msgid "Layer file path" msgstr "Layer file path" -#: ../apps/ll-builder/src/main.cpp:321 +#: ../apps/ll-builder/src/main.cpp:328 msgid "Extract linyaps layer to dir" msgstr "Extract linyaps layer to dir" -#: ../apps/ll-builder/src/main.cpp:322 +#: ../apps/ll-builder/src/main.cpp:329 msgid "Usage: ll-builder extract [OPTIONS] LAYER DIR" msgstr "Usage: ll-builder extract [OPTIONS] LAYER DIR" -#: ../apps/ll-builder/src/main.cpp:326 +#: ../apps/ll-builder/src/main.cpp:333 msgid "Destination directory" msgstr "Destination directory" #. add build repo -#: ../apps/ll-builder/src/main.cpp:329 +#: ../apps/ll-builder/src/main.cpp:336 msgid "Display and manage repositories" msgstr "Display and manage repositories" -#: ../apps/ll-builder/src/main.cpp:330 +#: ../apps/ll-builder/src/main.cpp:337 msgid "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" msgstr "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" -#: ../apps/ll-builder/src/main.cpp:335 +#: ../apps/ll-builder/src/main.cpp:342 msgid "Usage: ll-builder repo add [OPTIONS] NAME URL" msgstr "Usage: ll-builder repo add [OPTIONS] NAME URL" -#: ../apps/ll-builder/src/main.cpp:345 +#: ../apps/ll-builder/src/main.cpp:352 msgid "Usage: ll-builder repo remove [OPTIONS] NAME" msgstr "Usage: ll-builder repo remove [OPTIONS] NAME" -#: ../apps/ll-builder/src/main.cpp:352 +#: ../apps/ll-builder/src/main.cpp:359 msgid "Usage: ll-builder repo update [OPTIONS] NAME URL" msgstr "Usage: ll-builder repo update [OPTIONS] NAME URL" -#: ../apps/ll-builder/src/main.cpp:363 +#: ../apps/ll-builder/src/main.cpp:370 msgid "Usage: ll-builder repo set-default [OPTIONS] NAME" msgstr "Usage: ll-builder repo set-default [OPTIONS] NAME" -#: ../apps/ll-builder/src/main.cpp:370 +#: ../apps/ll-builder/src/main.cpp:377 msgid "Usage: ll-builder repo show [OPTIONS]" msgstr "Usage: ll-builder repo show [OPTIONS]" -#: ../apps/ll-builder/src/main.cpp:375 +#: ../apps/ll-builder/src/main.cpp:382 msgid "linyaps build tool version " msgstr "linyaps build tool version " diff --git a/po/en_US.po b/po/en_US.po index 62a8fda3d..09a39c4ed 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-23 17:02+0800\n" +"POT-Creation-Date: 2024-11-27 18:02+0800\n" "PO-Revision-Date: 2024-11-21 17:58+0800\n" "Last-Translator: deepiner, 2024\n" "Language-Team: LANGUAGE \n" @@ -350,7 +350,7 @@ msgid "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" msgstr "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" #. add repo sub command add -#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:334 +#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:341 msgid "Add a new repository" msgstr "Add a new repository" @@ -360,15 +360,15 @@ msgstr "Usage: ll-cli repo add [OPTIONS] NAME URL" #: ../apps/ll-cli/src/main.cpp:451 ../apps/ll-cli/src/main.cpp:461 #: ../apps/ll-cli/src/main.cpp:471 ../apps/ll-cli/src/main.cpp:478 -#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:336 -#: ../apps/ll-builder/src/main.cpp:346 ../apps/ll-builder/src/main.cpp:353 -#: ../apps/ll-builder/src/main.cpp:364 +#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:343 +#: ../apps/ll-builder/src/main.cpp:353 ../apps/ll-builder/src/main.cpp:360 +#: ../apps/ll-builder/src/main.cpp:371 msgid "Specify the repo name" msgstr "Specify the repo name" #: ../apps/ll-cli/src/main.cpp:454 ../apps/ll-cli/src/main.cpp:464 -#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:339 -#: ../apps/ll-builder/src/main.cpp:356 +#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:346 +#: ../apps/ll-builder/src/main.cpp:363 msgid "Url of the repository" msgstr "Url of the repository" @@ -377,7 +377,7 @@ msgid "Modify repository URL" msgstr "Modify repository URL" #. add repo sub command remove -#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:344 +#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:351 msgid "Remove a repository" msgstr "Remove a repository" @@ -386,7 +386,7 @@ msgid "Usage: ll-cli repo remove [OPTIONS] NAME" msgstr "Usage: ll-cli repo remove [OPTIONS] NAME" #. add repo sub command update -#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:351 +#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:358 msgid "Update the repository URL" msgstr "Update the repository URL" @@ -394,7 +394,7 @@ msgstr "Update the repository URL" msgid "Usage: ll-cli repo update [OPTIONS] NAME URL" msgstr "Usage: ll-cli repo update [OPTIONS] NAME URL" -#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:362 +#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:369 msgid "Set a default repository name" msgstr "Set a default repository name" @@ -403,7 +403,7 @@ msgid "Usage: ll-cli repo set-default [OPTIONS] NAME" msgstr "Usage: ll-cli repo set-default [OPTIONS] NAME" #. add repo sub command show -#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:369 +#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:376 msgid "Show repository information" msgstr "Show repository information" @@ -496,7 +496,7 @@ msgid "Usage: ll-builder build [OPTIONS] [COMMAND...]" msgstr "Usage: ll-builder build [OPTIONS] [COMMAND...]" #: ../apps/ll-builder/src/main.cpp:214 ../apps/ll-builder/src/main.cpp:257 -#: ../apps/ll-builder/src/main.cpp:284 ../apps/ll-builder/src/main.cpp:297 +#: ../apps/ll-builder/src/main.cpp:291 ../apps/ll-builder/src/main.cpp:304 msgid "File path of the linglong.yaml" msgstr "File path of the linglong.yaml" @@ -569,95 +569,111 @@ msgstr "Enter the container to execute command instead of running application" msgid "Run in debug mode (enable develop module)" msgstr "Run in debug mode (enable develop module)" +#: ../apps/ll-builder/src/main.cpp:279 +msgid "List builded linyaps app" +msgstr "List builded linyaps app" + +#: ../apps/ll-builder/src/main.cpp:280 +msgid "Usage: ll-builder list [OPTIONS]" +msgstr "Usage: ll-builder list [OPTIONS]" + #: ../apps/ll-builder/src/main.cpp:282 +msgid "Remove builded linyaps app" +msgstr "Remove builded linyaps app" + +#: ../apps/ll-builder/src/main.cpp:283 +msgid "Usage: ll-builder remove [OPTIONS] [APP...]" +msgstr "Usage: ll-builder remove [OPTIONS] [APP...]" + +#: ../apps/ll-builder/src/main.cpp:289 msgid "Export to linyaps layer or uab" msgstr "Export to linyaps layer or uab" -#: ../apps/ll-builder/src/main.cpp:283 +#: ../apps/ll-builder/src/main.cpp:290 msgid "Usage: ll-builder export [OPTIONS]" msgstr "Usage: ll-builder export [OPTIONS]" -#: ../apps/ll-builder/src/main.cpp:288 +#: ../apps/ll-builder/src/main.cpp:295 msgid "Uab icon (optional)" msgstr "Uab icon (optional)" -#: ../apps/ll-builder/src/main.cpp:291 +#: ../apps/ll-builder/src/main.cpp:298 msgid "Export to linyaps layer file" msgstr "Export to linyaps layer file" -#: ../apps/ll-builder/src/main.cpp:295 +#: ../apps/ll-builder/src/main.cpp:302 msgid "Push linyaps app to remote repo" msgstr "Push linyaps app to remote repo" -#: ../apps/ll-builder/src/main.cpp:296 +#: ../apps/ll-builder/src/main.cpp:303 msgid "Usage: ll-builder push [OPTIONS]" msgstr "Usage: ll-builder push [OPTIONS]" -#: ../apps/ll-builder/src/main.cpp:301 +#: ../apps/ll-builder/src/main.cpp:308 msgid "Remote repo url" msgstr "Remote repo url" -#: ../apps/ll-builder/src/main.cpp:304 +#: ../apps/ll-builder/src/main.cpp:311 msgid "Remote repo name" msgstr "Remote repo name" -#: ../apps/ll-builder/src/main.cpp:307 +#: ../apps/ll-builder/src/main.cpp:314 msgid "Push single module" msgstr "Push single module" -#: ../apps/ll-builder/src/main.cpp:312 +#: ../apps/ll-builder/src/main.cpp:319 msgid "Import linyaps layer to build repo" msgstr "Import linyaps layer to build repo" -#: ../apps/ll-builder/src/main.cpp:313 +#: ../apps/ll-builder/src/main.cpp:320 msgid "Usage: ll-builder import [OPTIONS] LAYER" msgstr "Usage: ll-builder import [OPTIONS] LAYER" -#: ../apps/ll-builder/src/main.cpp:314 ../apps/ll-builder/src/main.cpp:323 +#: ../apps/ll-builder/src/main.cpp:321 ../apps/ll-builder/src/main.cpp:330 msgid "Layer file path" msgstr "Layer file path" -#: ../apps/ll-builder/src/main.cpp:321 +#: ../apps/ll-builder/src/main.cpp:328 msgid "Extract linyaps layer to dir" msgstr "Extract linyaps layer to dir" -#: ../apps/ll-builder/src/main.cpp:322 +#: ../apps/ll-builder/src/main.cpp:329 msgid "Usage: ll-builder extract [OPTIONS] LAYER DIR" msgstr "Usage: ll-builder extract [OPTIONS] LAYER DIR" -#: ../apps/ll-builder/src/main.cpp:326 +#: ../apps/ll-builder/src/main.cpp:333 msgid "Destination directory" msgstr "Destination directory" #. add build repo -#: ../apps/ll-builder/src/main.cpp:329 +#: ../apps/ll-builder/src/main.cpp:336 msgid "Display and manage repositories" msgstr "Display and manage repositories" -#: ../apps/ll-builder/src/main.cpp:330 +#: ../apps/ll-builder/src/main.cpp:337 msgid "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" msgstr "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" -#: ../apps/ll-builder/src/main.cpp:335 +#: ../apps/ll-builder/src/main.cpp:342 msgid "Usage: ll-builder repo add [OPTIONS] NAME URL" msgstr "Usage: ll-builder repo add [OPTIONS] NAME URL" -#: ../apps/ll-builder/src/main.cpp:345 +#: ../apps/ll-builder/src/main.cpp:352 msgid "Usage: ll-builder repo remove [OPTIONS] NAME" msgstr "Usage: ll-builder repo remove [OPTIONS] NAME" -#: ../apps/ll-builder/src/main.cpp:352 +#: ../apps/ll-builder/src/main.cpp:359 msgid "Usage: ll-builder repo update [OPTIONS] NAME URL" msgstr "Usage: ll-builder repo update [OPTIONS] NAME URL" -#: ../apps/ll-builder/src/main.cpp:363 +#: ../apps/ll-builder/src/main.cpp:370 msgid "Usage: ll-builder repo set-default [OPTIONS] NAME" msgstr "Usage: ll-builder repo set-default [OPTIONS] NAME" -#: ../apps/ll-builder/src/main.cpp:370 +#: ../apps/ll-builder/src/main.cpp:377 msgid "Usage: ll-builder repo show [OPTIONS]" msgstr "Usage: ll-builder repo show [OPTIONS]" -#: ../apps/ll-builder/src/main.cpp:375 +#: ../apps/ll-builder/src/main.cpp:382 msgid "linyaps build tool version " msgstr "linyaps build tool version " diff --git a/po/es.po b/po/es.po index 6bec36cf6..96b0956db 100644 --- a/po/es.po +++ b/po/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-23 17:02+0800\n" +"POT-Creation-Date: 2024-11-27 18:02+0800\n" "PO-Revision-Date: 2024-11-21 18:10+0800\n" "Last-Translator: deepiner, 2024\n" "Language-Team: LANGUAGE \n" @@ -147,7 +147,9 @@ msgstr "Ejecutar comandos en el entorno aislado actualmente en ejecución" #: ../apps/ll-cli/src/main.cpp:281 ../apps/ll-cli/src/main.cpp:299 msgid "Specify the application running instance(you can get it by ps command)" -msgstr "Especifique la instancia de la aplicación en ejecución (puede obtenerla con el comando ps)" +msgstr "" +"Especifique la instancia de la aplicación en ejecución (puede obtenerla con " +"el comando ps)" #: ../apps/ll-cli/src/main.cpp:284 ../apps/ll-cli/src/main.cpp:301 msgid "Specify working directory" @@ -305,8 +307,8 @@ msgstr "Especificar las Palabras Clave" #: ../apps/ll-cli/src/main.cpp:406 ../apps/ll-cli/src/main.cpp:430 msgid "Filter result with specify type. One of \"runtime\", \"app\" or \"all\"" msgstr "" -"Filtrar resultado con tipo especificado. Uno de \"runtime\", \"app\" o " -"\"all\"" +"Filtrar resultado con tipo especificado. Uno de \"runtime\", \"app\" o \"all" +"\"" #: ../apps/ll-cli/src/main.cpp:410 msgid "include develop application in result" @@ -356,7 +358,7 @@ msgid "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" msgstr "Uso: ll-cli repo SUBCOMANDO [OPCIONES]" #. add repo sub command add -#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:334 +#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:341 msgid "Add a new repository" msgstr "Agregar un nuevo repositorio" @@ -366,15 +368,15 @@ msgstr "Uso: ll-cli repo add [OPCIONES] NOMBRE URL" #: ../apps/ll-cli/src/main.cpp:451 ../apps/ll-cli/src/main.cpp:461 #: ../apps/ll-cli/src/main.cpp:471 ../apps/ll-cli/src/main.cpp:478 -#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:336 -#: ../apps/ll-builder/src/main.cpp:346 ../apps/ll-builder/src/main.cpp:353 -#: ../apps/ll-builder/src/main.cpp:364 +#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:343 +#: ../apps/ll-builder/src/main.cpp:353 ../apps/ll-builder/src/main.cpp:360 +#: ../apps/ll-builder/src/main.cpp:371 msgid "Specify the repo name" msgstr "Especificar el nombre del repositorio" #: ../apps/ll-cli/src/main.cpp:454 ../apps/ll-cli/src/main.cpp:464 -#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:339 -#: ../apps/ll-builder/src/main.cpp:356 +#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:346 +#: ../apps/ll-builder/src/main.cpp:363 msgid "Url of the repository" msgstr "URL del repositorio" @@ -383,7 +385,7 @@ msgid "Modify repository URL" msgstr "Modificar la URL del repositorio" #. add repo sub command remove -#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:344 +#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:351 msgid "Remove a repository" msgstr "Eliminar un repositorio" @@ -392,7 +394,7 @@ msgid "Usage: ll-cli repo remove [OPTIONS] NAME" msgstr "Uso: ll-cli repo remove [OPCIONES] NOMBRE" #. add repo sub command update -#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:351 +#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:358 msgid "Update the repository URL" msgstr "Actualizar la URL del repositorio" @@ -400,7 +402,7 @@ msgstr "Actualizar la URL del repositorio" msgid "Usage: ll-cli repo update [OPTIONS] NAME URL" msgstr "Uso: ll-cli repo update [OPCIONES] NOMBRE URL" -#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:362 +#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:369 msgid "Set a default repository name" msgstr "Establecer un nombre de repositorio predeterminado" @@ -409,7 +411,7 @@ msgid "Usage: ll-cli repo set-default [OPTIONS] NAME" msgstr "Uso: ll-cli repo set-default [OPCIONES] NOMBRE" #. add repo sub command show -#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:369 +#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:376 msgid "Show repository information" msgstr "Mostrar información del repositorio" @@ -504,7 +506,7 @@ msgid "Usage: ll-builder build [OPTIONS] [COMMAND...]" msgstr "Uso: ll-builder build [OPCIONES] [COMANDO...]" #: ../apps/ll-builder/src/main.cpp:214 ../apps/ll-builder/src/main.cpp:257 -#: ../apps/ll-builder/src/main.cpp:284 ../apps/ll-builder/src/main.cpp:297 +#: ../apps/ll-builder/src/main.cpp:291 ../apps/ll-builder/src/main.cpp:304 msgid "File path of the linglong.yaml" msgstr "Ruta del archivo de linglong.yaml" @@ -581,95 +583,111 @@ msgstr "" msgid "Run in debug mode (enable develop module)" msgstr "Ejecutar en modo depuración (habilitar módulo de desarrollo)" +#: ../apps/ll-builder/src/main.cpp:279 +msgid "List builded linyaps app" +msgstr "Listar las aplicaciones Linyaps construidas" + +#: ../apps/ll-builder/src/main.cpp:280 +msgid "Usage: ll-builder list [OPTIONS]" +msgstr "Uso: ll-builder list [OPCIONES]" + #: ../apps/ll-builder/src/main.cpp:282 +msgid "Remove builded linyaps app" +msgstr "Eliminar las aplicaciones Linyaps construidas" + +#: ../apps/ll-builder/src/main.cpp:283 +msgid "Usage: ll-builder remove [OPTIONS] [APP...]" +msgstr "Uso: ll-builder remove [OPCIONES] [APP...]" + +#: ../apps/ll-builder/src/main.cpp:289 msgid "Export to linyaps layer or uab" msgstr "Exportar a la capa o uab de linyaps" -#: ../apps/ll-builder/src/main.cpp:283 +#: ../apps/ll-builder/src/main.cpp:290 msgid "Usage: ll-builder export [OPTIONS]" msgstr "Uso: ll-builder export [OPCIONES]" -#: ../apps/ll-builder/src/main.cpp:288 +#: ../apps/ll-builder/src/main.cpp:295 msgid "Uab icon (optional)" msgstr "Icono de uab (opcional)" -#: ../apps/ll-builder/src/main.cpp:291 +#: ../apps/ll-builder/src/main.cpp:298 msgid "Export to linyaps layer file" msgstr "Exportar al archivo de capa de linyaps" -#: ../apps/ll-builder/src/main.cpp:295 +#: ../apps/ll-builder/src/main.cpp:302 msgid "Push linyaps app to remote repo" msgstr "Enviar la aplicación linyaps al repositorio remoto" -#: ../apps/ll-builder/src/main.cpp:296 +#: ../apps/ll-builder/src/main.cpp:303 msgid "Usage: ll-builder push [OPTIONS]" msgstr "Uso: ll-builder push [OPCIONES]" -#: ../apps/ll-builder/src/main.cpp:301 +#: ../apps/ll-builder/src/main.cpp:308 msgid "Remote repo url" msgstr "URL del repositorio remoto" -#: ../apps/ll-builder/src/main.cpp:304 +#: ../apps/ll-builder/src/main.cpp:311 msgid "Remote repo name" msgstr "Nombre del repositorio remoto" -#: ../apps/ll-builder/src/main.cpp:307 +#: ../apps/ll-builder/src/main.cpp:314 msgid "Push single module" msgstr "Enviar módulo único" -#: ../apps/ll-builder/src/main.cpp:312 +#: ../apps/ll-builder/src/main.cpp:319 msgid "Import linyaps layer to build repo" msgstr "Importar la capa de linyaps para construir el repositorio" -#: ../apps/ll-builder/src/main.cpp:313 +#: ../apps/ll-builder/src/main.cpp:320 msgid "Usage: ll-builder import [OPTIONS] LAYER" msgstr "Uso: ll-builder import [OPCIONES] CAPA" -#: ../apps/ll-builder/src/main.cpp:314 ../apps/ll-builder/src/main.cpp:323 +#: ../apps/ll-builder/src/main.cpp:321 ../apps/ll-builder/src/main.cpp:330 msgid "Layer file path" msgstr "Ruta del archivo de la capa" -#: ../apps/ll-builder/src/main.cpp:321 +#: ../apps/ll-builder/src/main.cpp:328 msgid "Extract linyaps layer to dir" msgstr "Extraer la capa de linyaps al directorio" -#: ../apps/ll-builder/src/main.cpp:322 +#: ../apps/ll-builder/src/main.cpp:329 msgid "Usage: ll-builder extract [OPTIONS] LAYER DIR" msgstr "Uso: ll-builder extract [OPCIONES] CAPA DIR" -#: ../apps/ll-builder/src/main.cpp:326 +#: ../apps/ll-builder/src/main.cpp:333 msgid "Destination directory" msgstr "Directorio de destino" #. add build repo -#: ../apps/ll-builder/src/main.cpp:329 +#: ../apps/ll-builder/src/main.cpp:336 msgid "Display and manage repositories" msgstr "Mostrar y gestionar repositorios" -#: ../apps/ll-builder/src/main.cpp:330 +#: ../apps/ll-builder/src/main.cpp:337 msgid "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" msgstr "Uso: ll-builder repo [OPCIONES] SUBCOMANDO" -#: ../apps/ll-builder/src/main.cpp:335 +#: ../apps/ll-builder/src/main.cpp:342 msgid "Usage: ll-builder repo add [OPTIONS] NAME URL" msgstr "Uso: ll-builder repo add [OPCIONES] NOMBRE URL" -#: ../apps/ll-builder/src/main.cpp:345 +#: ../apps/ll-builder/src/main.cpp:352 msgid "Usage: ll-builder repo remove [OPTIONS] NAME" msgstr "Uso: ll-builder repo remove [OPCIONES] NOMBRE" -#: ../apps/ll-builder/src/main.cpp:352 +#: ../apps/ll-builder/src/main.cpp:359 msgid "Usage: ll-builder repo update [OPTIONS] NAME URL" msgstr "Uso: ll-builder repo update [OPCIONES] NOMBRE URL" -#: ../apps/ll-builder/src/main.cpp:363 +#: ../apps/ll-builder/src/main.cpp:370 msgid "Usage: ll-builder repo set-default [OPTIONS] NAME" msgstr "Uso: ll-builder repo set-default [OPCIONES] NOMBRE" -#: ../apps/ll-builder/src/main.cpp:370 +#: ../apps/ll-builder/src/main.cpp:377 msgid "Usage: ll-builder repo show [OPTIONS]" msgstr "Uso: ll-builder repo show [OPCIONES]" -#: ../apps/ll-builder/src/main.cpp:375 +#: ../apps/ll-builder/src/main.cpp:382 msgid "linyaps build tool version " msgstr "versión de la herramienta de construcción de linyaps " diff --git a/po/linyaps.pot b/po/linyaps.pot index 0962bba41..5ce90f857 100644 --- a/po/linyaps.pot +++ b/po/linyaps.pot @@ -8,13 +8,13 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-23 17:02+0800\n" +"POT-Creation-Date: 2024-11-27 18:02+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: ../apps/ll-cli/src/main.cpp:186 @@ -291,7 +291,7 @@ msgid "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" msgstr "" #. add repo sub command add -#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:334 +#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:341 msgid "Add a new repository" msgstr "" @@ -301,15 +301,15 @@ msgstr "" #: ../apps/ll-cli/src/main.cpp:451 ../apps/ll-cli/src/main.cpp:461 #: ../apps/ll-cli/src/main.cpp:471 ../apps/ll-cli/src/main.cpp:478 -#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:336 -#: ../apps/ll-builder/src/main.cpp:346 ../apps/ll-builder/src/main.cpp:353 -#: ../apps/ll-builder/src/main.cpp:364 +#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:343 +#: ../apps/ll-builder/src/main.cpp:353 ../apps/ll-builder/src/main.cpp:360 +#: ../apps/ll-builder/src/main.cpp:371 msgid "Specify the repo name" msgstr "" #: ../apps/ll-cli/src/main.cpp:454 ../apps/ll-cli/src/main.cpp:464 -#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:339 -#: ../apps/ll-builder/src/main.cpp:356 +#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:346 +#: ../apps/ll-builder/src/main.cpp:363 msgid "Url of the repository" msgstr "" @@ -318,7 +318,7 @@ msgid "Modify repository URL" msgstr "" #. add repo sub command remove -#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:344 +#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:351 msgid "Remove a repository" msgstr "" @@ -327,7 +327,7 @@ msgid "Usage: ll-cli repo remove [OPTIONS] NAME" msgstr "" #. add repo sub command update -#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:351 +#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:358 msgid "Update the repository URL" msgstr "" @@ -335,7 +335,7 @@ msgstr "" msgid "Usage: ll-cli repo update [OPTIONS] NAME URL" msgstr "" -#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:362 +#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:369 msgid "Set a default repository name" msgstr "" @@ -344,7 +344,7 @@ msgid "Usage: ll-cli repo set-default [OPTIONS] NAME" msgstr "" #. add repo sub command show -#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:369 +#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:376 msgid "Show repository information" msgstr "" @@ -432,7 +432,7 @@ msgid "Usage: ll-builder build [OPTIONS] [COMMAND...]" msgstr "" #: ../apps/ll-builder/src/main.cpp:214 ../apps/ll-builder/src/main.cpp:257 -#: ../apps/ll-builder/src/main.cpp:284 ../apps/ll-builder/src/main.cpp:297 +#: ../apps/ll-builder/src/main.cpp:291 ../apps/ll-builder/src/main.cpp:304 msgid "File path of the linglong.yaml" msgstr "" @@ -502,95 +502,111 @@ msgstr "" msgid "Run in debug mode (enable develop module)" msgstr "" +#: ../apps/ll-builder/src/main.cpp:279 +msgid "List builded linyaps app" +msgstr "" + +#: ../apps/ll-builder/src/main.cpp:280 +msgid "Usage: ll-builder list [OPTIONS]" +msgstr "" + #: ../apps/ll-builder/src/main.cpp:282 -msgid "Export to linyaps layer or uab" +msgid "Remove builded linyaps app" msgstr "" #: ../apps/ll-builder/src/main.cpp:283 +msgid "Usage: ll-builder remove [OPTIONS] [APP...]" +msgstr "" + +#: ../apps/ll-builder/src/main.cpp:289 +msgid "Export to linyaps layer or uab" +msgstr "" + +#: ../apps/ll-builder/src/main.cpp:290 msgid "Usage: ll-builder export [OPTIONS]" msgstr "" -#: ../apps/ll-builder/src/main.cpp:288 +#: ../apps/ll-builder/src/main.cpp:295 msgid "Uab icon (optional)" msgstr "" -#: ../apps/ll-builder/src/main.cpp:291 +#: ../apps/ll-builder/src/main.cpp:298 msgid "Export to linyaps layer file" msgstr "" -#: ../apps/ll-builder/src/main.cpp:295 +#: ../apps/ll-builder/src/main.cpp:302 msgid "Push linyaps app to remote repo" msgstr "" -#: ../apps/ll-builder/src/main.cpp:296 +#: ../apps/ll-builder/src/main.cpp:303 msgid "Usage: ll-builder push [OPTIONS]" msgstr "" -#: ../apps/ll-builder/src/main.cpp:301 +#: ../apps/ll-builder/src/main.cpp:308 msgid "Remote repo url" msgstr "" -#: ../apps/ll-builder/src/main.cpp:304 +#: ../apps/ll-builder/src/main.cpp:311 msgid "Remote repo name" msgstr "" -#: ../apps/ll-builder/src/main.cpp:307 +#: ../apps/ll-builder/src/main.cpp:314 msgid "Push single module" msgstr "" -#: ../apps/ll-builder/src/main.cpp:312 +#: ../apps/ll-builder/src/main.cpp:319 msgid "Import linyaps layer to build repo" msgstr "" -#: ../apps/ll-builder/src/main.cpp:313 +#: ../apps/ll-builder/src/main.cpp:320 msgid "Usage: ll-builder import [OPTIONS] LAYER" msgstr "" -#: ../apps/ll-builder/src/main.cpp:314 ../apps/ll-builder/src/main.cpp:323 +#: ../apps/ll-builder/src/main.cpp:321 ../apps/ll-builder/src/main.cpp:330 msgid "Layer file path" msgstr "" -#: ../apps/ll-builder/src/main.cpp:321 +#: ../apps/ll-builder/src/main.cpp:328 msgid "Extract linyaps layer to dir" msgstr "" -#: ../apps/ll-builder/src/main.cpp:322 +#: ../apps/ll-builder/src/main.cpp:329 msgid "Usage: ll-builder extract [OPTIONS] LAYER DIR" msgstr "" -#: ../apps/ll-builder/src/main.cpp:326 +#: ../apps/ll-builder/src/main.cpp:333 msgid "Destination directory" msgstr "" #. add build repo -#: ../apps/ll-builder/src/main.cpp:329 +#: ../apps/ll-builder/src/main.cpp:336 msgid "Display and manage repositories" msgstr "" -#: ../apps/ll-builder/src/main.cpp:330 +#: ../apps/ll-builder/src/main.cpp:337 msgid "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" msgstr "" -#: ../apps/ll-builder/src/main.cpp:335 +#: ../apps/ll-builder/src/main.cpp:342 msgid "Usage: ll-builder repo add [OPTIONS] NAME URL" msgstr "" -#: ../apps/ll-builder/src/main.cpp:345 +#: ../apps/ll-builder/src/main.cpp:352 msgid "Usage: ll-builder repo remove [OPTIONS] NAME" msgstr "" -#: ../apps/ll-builder/src/main.cpp:352 +#: ../apps/ll-builder/src/main.cpp:359 msgid "Usage: ll-builder repo update [OPTIONS] NAME URL" msgstr "" -#: ../apps/ll-builder/src/main.cpp:363 +#: ../apps/ll-builder/src/main.cpp:370 msgid "Usage: ll-builder repo set-default [OPTIONS] NAME" msgstr "" -#: ../apps/ll-builder/src/main.cpp:370 +#: ../apps/ll-builder/src/main.cpp:377 msgid "Usage: ll-builder repo show [OPTIONS]" msgstr "" -#: ../apps/ll-builder/src/main.cpp:375 +#: ../apps/ll-builder/src/main.cpp:382 msgid "linyaps build tool version " msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 87f5c14da..c1677b41f 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-23 17:02+0800\n" +"POT-Creation-Date: 2024-11-27 18:02+0800\n" "PO-Revision-Date: 2024-11-21 18:08+0800\n" "Last-Translator: deepiner, 2024\n" "Language-Team: LANGUAGE \n" @@ -341,7 +341,7 @@ msgid "Usage: ll-cli repo SUBCOMMAND [OPTIONS]" msgstr "用法: ll-cli repo [选项] 子命令" #. add repo sub command add -#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:334 +#: ../apps/ll-cli/src/main.cpp:449 ../apps/ll-builder/src/main.cpp:341 msgid "Add a new repository" msgstr "添加新的仓库" @@ -351,15 +351,15 @@ msgstr "用法: ll-cli repo add [选项] 名称 URL" #: ../apps/ll-cli/src/main.cpp:451 ../apps/ll-cli/src/main.cpp:461 #: ../apps/ll-cli/src/main.cpp:471 ../apps/ll-cli/src/main.cpp:478 -#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:336 -#: ../apps/ll-builder/src/main.cpp:346 ../apps/ll-builder/src/main.cpp:353 -#: ../apps/ll-builder/src/main.cpp:364 +#: ../apps/ll-cli/src/main.cpp:489 ../apps/ll-builder/src/main.cpp:343 +#: ../apps/ll-builder/src/main.cpp:353 ../apps/ll-builder/src/main.cpp:360 +#: ../apps/ll-builder/src/main.cpp:371 msgid "Specify the repo name" msgstr "指定仓库名称" #: ../apps/ll-cli/src/main.cpp:454 ../apps/ll-cli/src/main.cpp:464 -#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:339 -#: ../apps/ll-builder/src/main.cpp:356 +#: ../apps/ll-cli/src/main.cpp:481 ../apps/ll-builder/src/main.cpp:346 +#: ../apps/ll-builder/src/main.cpp:363 msgid "Url of the repository" msgstr "仓库URL" @@ -368,7 +368,7 @@ msgid "Modify repository URL" msgstr "修改仓库URL" #. add repo sub command remove -#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:344 +#: ../apps/ll-cli/src/main.cpp:469 ../apps/ll-builder/src/main.cpp:351 msgid "Remove a repository" msgstr "移除仓库" @@ -377,7 +377,7 @@ msgid "Usage: ll-cli repo remove [OPTIONS] NAME" msgstr "用法: ll-cli repo remove [选项] 名称" #. add repo sub command update -#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:351 +#: ../apps/ll-cli/src/main.cpp:476 ../apps/ll-builder/src/main.cpp:358 msgid "Update the repository URL" msgstr "更新仓库URL" @@ -385,7 +385,7 @@ msgstr "更新仓库URL" msgid "Usage: ll-cli repo update [OPTIONS] NAME URL" msgstr "用法: ll-cli repo update [选项] 名称 URL" -#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:362 +#: ../apps/ll-cli/src/main.cpp:487 ../apps/ll-builder/src/main.cpp:369 msgid "Set a default repository name" msgstr "设置默认仓库名称" @@ -394,7 +394,7 @@ msgid "Usage: ll-cli repo set-default [OPTIONS] NAME" msgstr "用法: ll-cli repo set-default [选项] 名称" #. add repo sub command show -#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:369 +#: ../apps/ll-cli/src/main.cpp:494 ../apps/ll-builder/src/main.cpp:376 msgid "Show repository information" msgstr "显示仓库信息" @@ -487,7 +487,7 @@ msgid "Usage: ll-builder build [OPTIONS] [COMMAND...]" msgstr "用法: ll-builder build [选项] [命令...]" #: ../apps/ll-builder/src/main.cpp:214 ../apps/ll-builder/src/main.cpp:257 -#: ../apps/ll-builder/src/main.cpp:284 ../apps/ll-builder/src/main.cpp:297 +#: ../apps/ll-builder/src/main.cpp:291 ../apps/ll-builder/src/main.cpp:304 msgid "File path of the linglong.yaml" msgstr "linglong.yaml的文件路径" @@ -557,95 +557,111 @@ msgstr "进入容器执行命令而不是运行应用" msgid "Run in debug mode (enable develop module)" msgstr "在调试模式下运行(启用开发模块)" +#: ../apps/ll-builder/src/main.cpp:279 +msgid "List builded linyaps app" +msgstr "运行构建好的应用程序" + +#: ../apps/ll-builder/src/main.cpp:280 +msgid "Usage: ll-builder list [OPTIONS]" +msgstr "用法: ll-builder list [选项]" + #: ../apps/ll-builder/src/main.cpp:282 +msgid "Remove builded linyaps app" +msgstr "删除构建好的应用程序" + +#: ../apps/ll-builder/src/main.cpp:283 +msgid "Usage: ll-builder remove [OPTIONS] [APP...]" +msgstr "用法: ll-builder remove [选项] 应用A 应用B" + +#: ../apps/ll-builder/src/main.cpp:289 msgid "Export to linyaps layer or uab" msgstr "导出如意玲珑layer或uab" -#: ../apps/ll-builder/src/main.cpp:283 +#: ../apps/ll-builder/src/main.cpp:290 msgid "Usage: ll-builder export [OPTIONS]" msgstr "用法: ll-builder export [选项]" -#: ../apps/ll-builder/src/main.cpp:288 +#: ../apps/ll-builder/src/main.cpp:295 msgid "Uab icon (optional)" msgstr "Uab图标(可选)" -#: ../apps/ll-builder/src/main.cpp:291 +#: ../apps/ll-builder/src/main.cpp:298 msgid "Export to linyaps layer file" msgstr "导出如意玲珑layer文件" -#: ../apps/ll-builder/src/main.cpp:295 +#: ../apps/ll-builder/src/main.cpp:302 msgid "Push linyaps app to remote repo" msgstr "推送如意玲珑应用到远程仓库" -#: ../apps/ll-builder/src/main.cpp:296 +#: ../apps/ll-builder/src/main.cpp:303 msgid "Usage: ll-builder push [OPTIONS]" msgstr "用法: ll-builder push [选项]" -#: ../apps/ll-builder/src/main.cpp:301 +#: ../apps/ll-builder/src/main.cpp:308 msgid "Remote repo url" msgstr "远程仓库URL" -#: ../apps/ll-builder/src/main.cpp:304 +#: ../apps/ll-builder/src/main.cpp:311 msgid "Remote repo name" msgstr "远程仓库名" -#: ../apps/ll-builder/src/main.cpp:307 +#: ../apps/ll-builder/src/main.cpp:314 msgid "Push single module" msgstr "推送单个模块" -#: ../apps/ll-builder/src/main.cpp:312 +#: ../apps/ll-builder/src/main.cpp:319 msgid "Import linyaps layer to build repo" msgstr "导入如意玲珑layer文件到构建仓库" -#: ../apps/ll-builder/src/main.cpp:313 +#: ../apps/ll-builder/src/main.cpp:320 msgid "Usage: ll-builder import [OPTIONS] LAYER" msgstr "用法: ll-builder import [选项] LAYER文件" -#: ../apps/ll-builder/src/main.cpp:314 ../apps/ll-builder/src/main.cpp:323 +#: ../apps/ll-builder/src/main.cpp:321 ../apps/ll-builder/src/main.cpp:330 msgid "Layer file path" msgstr "layer文件路径" -#: ../apps/ll-builder/src/main.cpp:321 +#: ../apps/ll-builder/src/main.cpp:328 msgid "Extract linyaps layer to dir" msgstr "将如意玲珑layer文件解压到目录" -#: ../apps/ll-builder/src/main.cpp:322 +#: ../apps/ll-builder/src/main.cpp:329 msgid "Usage: ll-builder extract [OPTIONS] LAYER DIR" msgstr "用法: ll-builder extract [选项] LAYER文件 目录" -#: ../apps/ll-builder/src/main.cpp:326 +#: ../apps/ll-builder/src/main.cpp:333 msgid "Destination directory" msgstr "目标目录" #. add build repo -#: ../apps/ll-builder/src/main.cpp:329 +#: ../apps/ll-builder/src/main.cpp:336 msgid "Display and manage repositories" msgstr "显示和管理仓库" -#: ../apps/ll-builder/src/main.cpp:330 +#: ../apps/ll-builder/src/main.cpp:337 msgid "Usage: ll-builder repo [OPTIONS] SUBCOMMAND" msgstr "用法: ll-builder repo [选项] 子命令" -#: ../apps/ll-builder/src/main.cpp:335 +#: ../apps/ll-builder/src/main.cpp:342 msgid "Usage: ll-builder repo add [OPTIONS] NAME URL" msgstr "用法: ll-builder repo add [选项] 名称 URL" -#: ../apps/ll-builder/src/main.cpp:345 +#: ../apps/ll-builder/src/main.cpp:352 msgid "Usage: ll-builder repo remove [OPTIONS] NAME" msgstr "用法: ll-builder repo remove [选项] 名称" -#: ../apps/ll-builder/src/main.cpp:352 +#: ../apps/ll-builder/src/main.cpp:359 msgid "Usage: ll-builder repo update [OPTIONS] NAME URL" msgstr "用法: ll-builder repo update [选项] 名称 URL" -#: ../apps/ll-builder/src/main.cpp:363 +#: ../apps/ll-builder/src/main.cpp:370 msgid "Usage: ll-builder repo set-default [OPTIONS] NAME" msgstr "用法: ll-builder repo set-default [选项] 名称" -#: ../apps/ll-builder/src/main.cpp:370 +#: ../apps/ll-builder/src/main.cpp:377 msgid "Usage: ll-builder repo show [OPTIONS]" msgstr "用法: ll-builder repo show [选项]" -#: ../apps/ll-builder/src/main.cpp:375 +#: ../apps/ll-builder/src/main.cpp:382 msgid "linyaps build tool version " msgstr "如意玲珑构建工具版本"