Skip to content

Commit 43568d2

Browse files
author
Your Name
committed
add resource top command
1 parent 20b0341 commit 43568d2

10 files changed

Lines changed: 1439 additions & 16 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ spark/
3232
│ ├── git.go # Git 父命令
3333
│ ├── config.go # Git 用户配置
3434
│ ├── update.go # 仓库更新命令
35+
│ ├── submodule.go # 子模块管理命令
3536
│ ├── sync.go # 子模块同步命令
3637
│ └── gitcode.go # Gitcode 远程管理
3738
├── internal/ # 内部业务逻辑
@@ -347,12 +348,10 @@ spark task sync my-task --work-path ./workspace
347348
**Issue 文件创建说明**:
348349
- 文件名中的空格和下划线会自动转换为 `-`
349350
- `--content` 参数的内容会写入 `## 描述` section
350-
- 如果存在 `example-issue.md`,会将其作为模板
351351

352352
**任务目录结构**:
353353
```
354354
tasks/
355-
├── example-issue.md # 示例 issue 模板
356355
├── issues/ # issue 文件目录
357356
├── config/ # 配置任务目录
358357
├── analysis/ # 分析任务目录

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Spark is a Go CLI tool (`module spark`, binary `spark`) for managing multiple Gi
4444

4545
```
4646
spark
47-
├── git [init|update|submodule|sync|gitcode|config|url|batch-clone|issues|update-org-status]
47+
├── git [init|update|submodule [add]|sync|gitcode|config|url|batch-clone|issues|update-org-status]
4848
├── task [list|init|dispatch|sync|create|delete|impl]
4949
├── script [list|run]
5050
└── magic [flush-dns|pip|go|node] # Mirror source switching + DNS

cmd/resource/resource.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package resource
2+
3+
import (
4+
"github.com/spf13/cobra"
5+
)
6+
7+
var ResourceCmd = &cobra.Command{
8+
Use: "resource",
9+
Short: "System resource monitoring commands",
10+
Long: `Commands for monitoring system resources:
11+
12+
- top: Display processes, ports, and resource groups in TUI or summary mode`,
13+
}
14+
15+
func init() {
16+
}

0 commit comments

Comments
 (0)