Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

FEATURE: ship h8 app restart/stop/start commands

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 内容生成。

描述

ai-agent enhancement P1-high

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 — sets is_enabled: false (already written)
  • src/commands/app/start.ts — sets is_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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

erfanium/h8-cli 的其他 Issue

查看 erfanium/h8-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。