mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-12 16:28:59 +00:00
Upgrade urfave/cli to v2 (#483)
* migrate urfave/ci v1 -> v2 * refactor cli (format flag) * log error if agent can not listen on port 3000 close #452
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
package repo
|
||||
|
||||
import "github.com/urfave/cli"
|
||||
import (
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/woodpecker-ci/woodpecker/cli/common"
|
||||
)
|
||||
|
||||
// Command exports the repository command.
|
||||
var Command = cli.Command{
|
||||
var Command = &cli.Command{
|
||||
Name: "repo",
|
||||
Usage: "manage repositories",
|
||||
Subcommands: []cli.Command{
|
||||
Flags: common.GlobalFlags,
|
||||
Subcommands: []*cli.Command{
|
||||
repoListCmd,
|
||||
repoInfoCmd,
|
||||
repoAddCmd,
|
||||
|
Reference in New Issue
Block a user