mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-04 02:48:29 +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
12
cmd/repos.go
12
cmd/repos.go
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
// CmdRepos represents to login a gitea server.
|
||||
@ -18,8 +18,8 @@ var CmdRepos = cli.Command{
|
||||
Usage: "Operate with repositories",
|
||||
Description: `Operate with repositories`,
|
||||
Action: runReposList,
|
||||
Subcommands: []cli.Command{
|
||||
CmdReposList,
|
||||
Subcommands: []*cli.Command{
|
||||
&CmdReposList,
|
||||
},
|
||||
Flags: LoginOutputFlags,
|
||||
}
|
||||
@ -31,15 +31,15 @@ var CmdReposList = cli.Command{
|
||||
Description: `List available repositories`,
|
||||
Action: runReposList,
|
||||
Flags: append([]cli.Flag{
|
||||
cli.StringFlag{
|
||||
&cli.StringFlag{
|
||||
Name: "mode",
|
||||
Usage: "Filter listed repositories based on mode, optional - fork, mirror, source",
|
||||
},
|
||||
cli.StringFlag{
|
||||
&cli.StringFlag{
|
||||
Name: "org",
|
||||
Usage: "Filter listed repositories based on organization, optional",
|
||||
},
|
||||
cli.StringFlag{
|
||||
&cli.StringFlag{
|
||||
Name: "user",
|
||||
Usage: "Filter listed repositories absed on user, optional",
|
||||
},
|
||||
|
Reference in New Issue
Block a user