description: "boot 包组:dsh app bin 如何启动——环境加载、profile 与 patch 层、清晰的启动失败信息,以及由应用持有的命令行。"
English | 中文
boot 组负责启动 profile 应用并管理其已安装组合。app-boot 解析配置并启动 Loader,cmdline 提供应用参数,plugin-manager 提供与 CLI 共享的当前 profile 操作。各包 README 负责各自的细节。
| 包 | 职责 | ctx 键 |
|---|---|---|
app-boot |
从 cordis.yml 启动 dsh 应用:加载 .env、应用 profile 与 patch 层,并清晰报告启动失败 |
(供各 bin 使用的库) |
cmdline |
让应用持有自己的 flag、--help 与退出码;启动器自身 flag 之后的一切原样传入 |
cmdlineArgs、appExit |
hmr |
协调模块与配置重载,并与包修改互斥执行 | hmr |
plugin-manager |
通过共享 CLI 操作管理当前 profile 插件与组合包 | pluginManager |
dsh bin。dsh --profile 组合挂载的可安装 patch 层。dsh-cmdline——flag 家族如何由应用持有而非启动器。
Profile 管理——服务方法与结果记录。
无。