修改代码注释为中文

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

@@ -13,7 +13,7 @@ func newProfileCmd() *cobra.Command {
Long: `创建、编辑、删除和管理 Profile 配置方案。`,
}
// Subcommands
// 注册子命令
cmd.AddCommand(newProfileCreateCmd())
cmd.AddCommand(newProfileShowCmd())
cmd.AddCommand(newProfileListCmd())
@@ -33,7 +33,7 @@ func newProfileCreateCmd() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
name := args[0]
fmt.Printf("📋 Creating profile \"%s\"...\n", name)
// TODO: Create profile
// TODO: 创建 Profile 配置文件
fmt.Printf("✅ Profile \"%s\" created.\n", name)
fmt.Printf("Edit with: devpack profile edit %s\n", name)
return nil
@@ -53,7 +53,7 @@ func newProfileShowCmd() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
name := args[0]
fmt.Printf("📋 Profile: %s\n", name)
// TODO: Show profile content
// TODO: 显示 Profile 内容
return nil
},
}
@@ -65,7 +65,7 @@ func newProfileListCmd() *cobra.Command {
Short: "列出所有 Profile",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("📋 Profiles:")
// TODO: List profiles
// TODO: 列出所有 Profile
fmt.Println(" (none)")
return nil
},
@@ -80,7 +80,7 @@ func newProfileDeleteCmd() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
name := args[0]
fmt.Printf("🗑️ Deleting profile \"%s\"...\n", name)
// TODO: Delete profile
// TODO: 删除 Profile 文件
fmt.Printf("✅ Profile \"%s\" deleted.\n", name)
return nil
},
@@ -95,7 +95,7 @@ func newProfileUseCmd() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
name := args[0]
fmt.Printf("✅ Default profile set to \"%s\".\n", name)
// TODO: Set default profile
// TODO: 设置默认 Profile
return nil
},
}