docs(attachment): 子命令描述和注释中文化

This commit is contained in:
刘焱 2026-06-08 19:58:57 +08:00
parent f5f1a34310
commit 0ff97fd213
1 changed files with 4 additions and 2 deletions

View File

@ -8,9 +8,10 @@ import (
func Shortcuts() []*common.Shortcut {
return []*common.Shortcut{
// +upload上传文件附件
{
Name: "upload",
Description: "Upload a file attachment",
Description: "上传文件附件",
Flags: []common.Flag{
{Name: "file", Short: "f", Usage: "Path to the file to upload", Required: true},
},
@ -29,9 +30,10 @@ func Shortcuts() []*common.Shortcut {
return ctx.Output(env)
},
},
// +delete根据 UUID 删除文件附件
{
Name: "delete",
Description: "Delete a file attachment by UUID",
Description: "根据 UUID 删除文件附件",
Flags: []common.Flag{
{Name: "uuid", Short: "u", Usage: "Attachment UUID to delete", Required: true},
},