修改代码注释为中文

This commit is contained in:
zyj
2026-03-04 14:10:30 +08:00
parent 89d64cb117
commit 2cb4e1a87b
16 changed files with 1031 additions and 69 deletions

View File

@@ -29,13 +29,13 @@ func newCaptureCmd() *cobra.Command {
return fmt.Errorf("必须指定 Pack 名称 (--name)")
}
fmt.Printf("📦 Capturing environment \"%s\"...\n", name)
// TODO: Implement capture logic
// 1. Load profile
// 2. Run collectors
// 3. Write data to temp directory
// 4. Generate manifest
// 5. Encrypt sensitive data (if enabled)
// 6. Create pack
// TODO: 实现捕获逻辑
// 1. 加载 Profile 配置
// 2. 运行采集器
// 3. 将数据写入临时目录
// 4. 生成 Manifest 清单
// 5. 加密敏感数据(如果启用)
// 6. 创建 Pack 文件
fmt.Printf("✅ Pack created: %s\n", name)
fmt.Printf("\nRun 'devpack export %s -o %s.devpack' to export.\n", name, name)
return nil