mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-08 01:01:17 +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:
@@ -19,7 +19,7 @@ import (
|
||||
"os"
|
||||
|
||||
_ "github.com/joho/godotenv/autoload"
|
||||
"github.com/urfave/cli"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/woodpecker-ci/woodpecker/version"
|
||||
)
|
||||
@@ -30,7 +30,7 @@ func main() {
|
||||
app.Version = version.String()
|
||||
app.Usage = "woodpecker agent"
|
||||
app.Action = loop
|
||||
app.Commands = []cli.Command{
|
||||
app.Commands = []*cli.Command{
|
||||
{
|
||||
Name: "ping",
|
||||
Usage: "ping the agent",
|
||||
|
Reference in New Issue
Block a user