mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Add more command shorthands (#307)
add more command aliases breaking: s/notif/n Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/307 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-Authored-By: Norwin <noerw@noreply.gitea.io> Co-Committed-By: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
		| @@ -19,6 +19,7 @@ import ( | ||||
| // CmdLabelCreate represents a sub command of labels to create label. | ||||
| var CmdLabelCreate = cli.Command{ | ||||
| 	Name:        "create", | ||||
| 	Aliases:     []string{"c"}, | ||||
| 	Usage:       "Create a label", | ||||
| 	Description: `Create a label`, | ||||
| 	Action:      runLabelCreate, | ||||
|   | ||||
| @@ -13,6 +13,7 @@ import ( | ||||
| // CmdLabelDelete represents a sub command of labels to delete label. | ||||
| var CmdLabelDelete = cli.Command{ | ||||
| 	Name:        "delete", | ||||
| 	Aliases:     []string{"rm"}, | ||||
| 	Usage:       "Delete a label", | ||||
| 	Description: `Delete a label`, | ||||
| 	Action:      runLabelDelete, | ||||
|   | ||||
| @@ -16,8 +16,8 @@ import ( | ||||
|  | ||||
| // CmdLabelsList represents a sub command of labels to list labels | ||||
| var CmdLabelsList = cli.Command{ | ||||
| 	Name:        "ls", | ||||
| 	Aliases:     []string{"list"}, | ||||
| 	Name:        "list", | ||||
| 	Aliases:     []string{"ls"}, | ||||
| 	Usage:       "List labels", | ||||
| 	Description: "List labels", | ||||
| 	Action:      RunLabelsList, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Norwin
					Norwin