mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15: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
				
			| @@ -11,7 +11,7 @@ import ( | ||||
|  | ||||
| 	"code.gitea.io/sdk/gitea" | ||||
|  | ||||
| 	"github.com/urfave/cli" | ||||
| 	"github.com/urfave/cli/v2" | ||||
| ) | ||||
|  | ||||
| // CmdReleases represents to login a gitea server. | ||||
| @@ -20,8 +20,8 @@ var CmdReleases = cli.Command{ | ||||
| 	Usage:       "Create releases", | ||||
| 	Description: `Create releases`, | ||||
| 	Action:      runReleases, | ||||
| 	Subcommands: []cli.Command{ | ||||
| 		CmdReleaseCreate, | ||||
| 	Subcommands: []*cli.Command{ | ||||
| 		&CmdReleaseCreate, | ||||
| 	}, | ||||
| 	Flags: AllDefaultFlags, | ||||
| } | ||||
| @@ -71,31 +71,31 @@ var CmdReleaseCreate = cli.Command{ | ||||
| 	Description: `Create a release`, | ||||
| 	Action:      runReleaseCreate, | ||||
| 	Flags: append([]cli.Flag{ | ||||
| 		cli.StringFlag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "tag", | ||||
| 			Usage: "Tag name", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "target", | ||||
| 			Usage: "Target refs, branch name or commit id", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "title, t", | ||||
| 			Usage: "Release title", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 		&cli.StringFlag{ | ||||
| 			Name:  "note, n", | ||||
| 			Usage: "Release notes", | ||||
| 		}, | ||||
| 		cli.BoolFlag{ | ||||
| 		&cli.BoolFlag{ | ||||
| 			Name:  "draft, d", | ||||
| 			Usage: "Is a draft", | ||||
| 		}, | ||||
| 		cli.BoolFlag{ | ||||
| 		&cli.BoolFlag{ | ||||
| 			Name:  "prerelease, p", | ||||
| 			Usage: "Is a pre-release", | ||||
| 		}, | ||||
| 		cli.StringSliceFlag{ | ||||
| 		&cli.StringSliceFlag{ | ||||
| 			Name:  "asset, a", | ||||
| 			Usage: "List of files to attach", | ||||
| 		}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user