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
2020-01-04 17:44:25 +00:00
committed by Andrew Thornton
parent 0a5cdd60ac
commit c20d7d45aa
57 changed files with 2151 additions and 1776 deletions

View File

@ -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",
},