mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Add missing flags (#369)
fixes #368 Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/tea/pulls/369 Reviewed-by: Andrew Thornton <art27@cantab.net> 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:
		| @@ -10,6 +10,7 @@ import ( | ||||
| 	"os" | ||||
| 	"strings" | ||||
|  | ||||
| 	"code.gitea.io/tea/cmd/flags" | ||||
| 	"code.gitea.io/tea/modules/context" | ||||
|  | ||||
| 	"code.gitea.io/sdk/gitea" | ||||
| @@ -23,7 +24,7 @@ var CmdLabelCreate = cli.Command{ | ||||
| 	Usage:       "Create a label", | ||||
| 	Description: `Create a label`, | ||||
| 	Action:      runLabelCreate, | ||||
| 	Flags: []cli.Flag{ | ||||
| 	Flags: append([]cli.Flag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "name", | ||||
| 			Usage: "label name", | ||||
| @@ -40,7 +41,7 @@ var CmdLabelCreate = cli.Command{ | ||||
| 			Name:  "file", | ||||
| 			Usage: "indicate a label file", | ||||
| 		}, | ||||
| 	}, | ||||
| 	}, flags.AllDefaultFlags...), | ||||
| } | ||||
|  | ||||
| func runLabelCreate(cmd *cli.Context) error { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Norwin
					Norwin