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:
6543
2021-10-27 21:03:14 +02:00
committed by GitHub
parent d35f5158bc
commit 798c2bc8b2
121 changed files with 8407 additions and 1346 deletions

View File

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