mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-03 02:18:30 +02: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:

committed by
Andrew Thornton

parent
0a5cdd60ac
commit
c20d7d45aa
18
main.go
18
main.go
@ -13,7 +13,7 @@ import (
|
||||
"code.gitea.io/tea/cmd"
|
||||
"code.gitea.io/tea/modules/setting"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
// Version holds the current Gitea version
|
||||
@ -33,14 +33,14 @@ func main() {
|
||||
app.Usage = "Command line tool to interact with Gitea"
|
||||
app.Description = ``
|
||||
app.Version = Version + formatBuiltWith(Tags)
|
||||
app.Commands = []cli.Command{
|
||||
cmd.CmdLogin,
|
||||
cmd.CmdLogout,
|
||||
cmd.CmdIssues,
|
||||
cmd.CmdPulls,
|
||||
cmd.CmdReleases,
|
||||
cmd.CmdRepos,
|
||||
cmd.CmdLabels,
|
||||
app.Commands = []*cli.Command{
|
||||
&cmd.CmdLogin,
|
||||
&cmd.CmdLogout,
|
||||
&cmd.CmdIssues,
|
||||
&cmd.CmdPulls,
|
||||
&cmd.CmdReleases,
|
||||
&cmd.CmdRepos,
|
||||
&cmd.CmdLabels,
|
||||
}
|
||||
app.EnableBashCompletion = true
|
||||
err := app.Run(os.Args)
|
||||
|
Reference in New Issue
Block a user