mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	chore(cli): upgrade urfave/cli to v2 version (#85)
chore(cli): upgrade urfave/cli to v2 version Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		 appleboy
					appleboy
				
			
				
					committed by
					
						 Andrew Thornton
						Andrew Thornton
					
				
			
			
				
	
			
			
			 Andrew Thornton
						Andrew Thornton
					
				
			
						parent
						
							0a5cdd60ac
						
					
				
				
					commit
					c20d7d45aa
				
			| @@ -13,7 +13,7 @@ import ( | ||||
|  | ||||
| 	"code.gitea.io/sdk/gitea" | ||||
|  | ||||
| 	"github.com/urfave/cli" | ||||
| 	"github.com/urfave/cli/v2" | ||||
| ) | ||||
|  | ||||
| // CmdIssues represents to login a gitea server. | ||||
| @@ -22,9 +22,9 @@ var CmdIssues = cli.Command{ | ||||
| 	Usage:       "List and create issues", | ||||
| 	Description: `List and create issues`, | ||||
| 	Action:      runIssues, | ||||
| 	Subcommands: []cli.Command{ | ||||
| 		CmdIssuesList, | ||||
| 		CmdIssuesCreate, | ||||
| 	Subcommands: []*cli.Command{ | ||||
| 		&CmdIssuesList, | ||||
| 		&CmdIssuesCreate, | ||||
| 	}, | ||||
| 	Flags: AllDefaultFlags, | ||||
| } | ||||
| @@ -124,11 +124,11 @@ var CmdIssuesCreate = cli.Command{ | ||||
| 	Description: `Create an issue on repository`, | ||||
| 	Action:      runIssuesCreate, | ||||
| 	Flags: append([]cli.Flag{ | ||||
| 		cli.StringFlag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "title, t", | ||||
| 			Usage: "issue title to create", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "body, b", | ||||
| 			Usage: "issue body to create", | ||||
| 		}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user