OpenAtom-Linyaps / linyaps

GNU Lesser General Public License v3.0
88 stars 45 forks source link

feat(builder): linglong builder help information internationalization #805

Closed dengbo11 closed 1 week ago

dengbo11 commented 1 week ago

Add ll-builder chinese, en_US, en_GB and spanish help information.

dengbo11 commented 1 week ago
ll-builder --help-all    

如意玲珑构建工具 CLI
一个用于构建如意玲珑应用的命令行工具

用法:ll-builder [选项] [子命令]

Options:
  -h,--help                   打印帮助信息并退出
  --help-all                  展开所有帮助
  --version                   显示版本

Subcommands:
create
  创建如意玲珑构建模板
  Positionals:
    NAME TEXT REQUIRED          项目名称

build
  构建如意玲珑项目
  Positionals:
    COMMAND TEXT ...            进入容器执行命令而不是构建应用
  Options:
    --file FILE:FILE [./linglong.yaml]
                                linglong.yaml的文件路径
    --arch ARCH                 设置构建架构
    --offline                   仅使用本地文件。这意味着将设置--skip-fetch-source和--skip-pull-depend
    --skip-fetch-source         跳过获取源代码
    --skip-pull-depend          跳过拉取依赖项
    --skip-run-container        跳过运行容器
    --skip-commit-output        跳过提交构建输出
    --skip-output-check         跳过输出检查
    --skip-strip-symbols        跳过剥离调试符号

run
  运行构建好的应用程序
  Positionals:
    COMMAND TEXT ...            进入容器执行命令而不是运行应用
  Options:
    --file FILE:FILE [./linglong.yaml]
                                linglong.yaml的文件路径
    --offline                   仅使用本地文件
    --modules modules ...       运行指定模块。例如: --modules binary,develop
    --debug                     在调试模式下运行(启用开发模块)

export
  导出如意玲珑layer或uab
  Options:
    --file FILE:FILE [./linglong.yaml]
                                linglong.yaml的文件路径
    --icon FILE:FILE            Uab图标(可选)
    --layer                     导出如意玲珑layer文件

push
  推送如意玲珑应用到远程仓库
  Options:
    --file FILE:FILE [./linglong.yaml]
                                linglong.yaml的文件路径
    --repo-url URL              远程仓库URL
    --repo-name NAME            远程仓库名
    --module TEXT               推送单个模块

import
  导入如意玲珑layer文件到构建仓库
  Positionals:
    LAYER FILE:FILE             layer文件路径

extract
  将如意玲珑layer文件解压到目录
  Positionals:
    LAYER TEXT:FILE             layer文件路径
    DIR DIR                     目标目录

repo
  显示和管理仓库
  Subcommands:
    add                         添加新的仓库
    remove                      移除仓库
    update                      更新仓库
    set-default                 设置默认仓库
    show                        显示仓库信息

如果在使用过程中遇到任何问题,
您可以通过此项目向如意玲珑项目团队报告错误:https://github.com/OpenAtom-Linyaps/linyaps/issues
deepin-ci-robot commented 1 week ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dengbo11, myml Once this PR has been reviewed and has the lgtm label, please assign black-desk for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/OpenAtom-Linyaps/linyaps/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment