forked from Gitlink/gitlink-cli
docs(label): 子命令描述和注释中文化
This commit is contained in:
parent
68e7994d08
commit
7fa93cb3c1
|
|
@ -8,9 +8,10 @@ import (
|
|||
|
||||
func Shortcuts() []*common.Shortcut {
|
||||
return []*common.Shortcut{
|
||||
// +list:列出仓库的疑修标签
|
||||
{
|
||||
Name: "list",
|
||||
Description: "List repository issue labels (tags)",
|
||||
Description: "列出仓库的疑修标签",
|
||||
Long: `List repository issue labels (tags).
|
||||
|
||||
Returns all labels defined in the repository.`,
|
||||
|
|
@ -27,9 +28,10 @@ Returns all labels defined in the repository.`,
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +create:创建疑修标签
|
||||
{
|
||||
Name: "create",
|
||||
Description: "Create an issue label",
|
||||
Description: "创建疑修标签",
|
||||
Long: `Create an issue label.
|
||||
|
||||
Creates a new label with the given name.
|
||||
|
|
@ -64,9 +66,10 @@ Optionally specify a color in hex format (without #).`,
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +update:更新疑修标签
|
||||
{
|
||||
Name: "update",
|
||||
Description: "Update an issue label",
|
||||
Description: "更新疑修标签",
|
||||
Long: `Update an issue label.
|
||||
|
||||
Updates the name and/or color of an existing label.
|
||||
|
|
@ -103,9 +106,10 @@ At least one of --name or --color should be provided.`,
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +delete:删除疑修标签
|
||||
{
|
||||
Name: "delete",
|
||||
Description: "Delete an issue label",
|
||||
Description: "删除疑修标签",
|
||||
Long: `Delete an issue label.
|
||||
|
||||
Permanently removes the label from the repository.`,
|
||||
|
|
@ -129,9 +133,10 @@ Permanently removes the label from the repository.`,
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +priorities:列出可用的疑修优先级
|
||||
{
|
||||
Name: "priorities",
|
||||
Description: "List available issue priorities",
|
||||
Description: "列出可用的疑修优先级",
|
||||
Long: `List available issue priorities.
|
||||
|
||||
Returns the priority levels that can be assigned to issues.`,
|
||||
|
|
@ -148,9 +153,10 @@ Returns the priority levels that can be assigned to issues.`,
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +statuses:列出可用的疑修状态
|
||||
{
|
||||
Name: "statuses",
|
||||
Description: "List available issue statuses",
|
||||
Description: "列出可用的疑修状态",
|
||||
Long: `List available issue statuses.
|
||||
|
||||
Returns the status values that issues can have
|
||||
|
|
@ -168,9 +174,10 @@ Returns the status values that issues can have
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +authors:列出可用的疑修作者
|
||||
{
|
||||
Name: "authors",
|
||||
Description: "List available issue authors",
|
||||
Description: "列出可用的疑修作者",
|
||||
Long: `List available issue authors.
|
||||
|
||||
Returns the users who have authored issues in the repository.`,
|
||||
|
|
@ -187,9 +194,10 @@ Returns the users who have authored issues in the repository.`,
|
|||
return ctx.Output(env)
|
||||
},
|
||||
},
|
||||
// +assigners:列出可用的疑修复办人
|
||||
{
|
||||
Name: "assigners",
|
||||
Description: "List available issue assigners",
|
||||
Description: "列出可用的疑修复办人",
|
||||
Long: `List available issue assigners.
|
||||
|
||||
Returns the users who can be assigned to issues in the repository.`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue