FEATURE: ship h8 app restart/stop/start commands
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- cli
调研方向
首先检查 src/commands/app 下的 TypeScript 文件如何编译并由 CLI 暴露,重点关注 stop.ts、start.ts、restart.ts 和 pods.ts。构建项目并验证 h8 app stop、start、restart 和 pods 已随项目发布,并调用预期的命令,包括 stop/start 行为和 restart 顺序。
由索引模型根据 Issue 内容生成。
描述
Problem
src/commands/app/restart.ts, stop.ts, and start.ts exist in the source tree but are not compiled/shipped. The stop command uses PATCH /api/v1/darkube/apps/:id/ with is_enabled: false — exactly what's needed during migrations when you want to shut down an app, do work on its persistent disk, then restart.
During a Grist data migration, I had to use raw API calls for this instead of a simple:
h8 app stop grist
Files to ship
src/commands/app/stop.ts— setsis_enabled: false(already written)src/commands/app/start.ts— setsis_enabled: true(already written)src/commands/app/restart.ts— stop + wait + start (already written)src/commands/app/pods.ts— list pods for an app (already written)
Proposed usage
h8 app stop grist # scale to 0
h8 app start grist # scale to 1
h8 app restart grist # rolling restart for debugging
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
erfanium/h8-cli 的其他 Issue
-
ai-agent enhancement P2-nice
难度 3/5 1-2 天 新手友好度 66/100
-
ai-agent enhancement P0-critical
难度 3/5 1-2 天 新手友好度 58/100
-
ai-agent enhancement P0-critical
难度 3/5 1-2 天 新手友好度 68/100
-
ai-agent enhancement P1-high
难度 5/5 一周以上 新手友好度 35/100
-
enhancement P2-nice
难度 3/5 1-2 天 新手友好度 67/100
相似的 Issue
-
documentation good first issue
难度 2/5 半天 新手友好度 72/100
sujithputta02/Esapay#13 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
维护者通常 1 天内回复
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)可能已有人在做 @chibenwa 今天认领。 未关闭ai-driven-qa bug claude Cosmetic
难度 2/5 1-3 小时 新手友好度 72/100
linagora/twake-contacts-frontend#271 · 1 条评论 ·
维护者通常 1 天内回复
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Koenkk/zigbee2mqtt#33402 ·
维护者通常 1 天内回复