Skip to content

Update module github.com/urfave/cli to v3 #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ toolchain go1.23.6
require (
github.com/minio/minio-go/v7 v7.0.74
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli v1.22.15
github.com/urfave/cli/v3 v3.1.0
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/goccy/go-json v0.10.3 // indirect
Expand All @@ -20,7 +19,6 @@ require (
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/minio/md5-simd v1.1.2 // indirect
github.com/rs/xid v1.5.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
Expand Down
20 changes: 4 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -25,22 +22,14 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc=
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/urfave/cli v1.22.15 h1:nuqt+pdC/KqswQKhETJjo7pvn/k4xMUxgW6liI7XpnM=
github.com/urfave/cli v1.22.15/go.mod h1:wSan1hmo5zeyLGBjRJbzRTNk8gwoYa2B9n4q9dmRIc0=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/urfave/cli/v3 v3.1.0 h1:kQR+oiqpJkBAONxBjM4RWivD4AfPHL/f4vqe/gjYU8M=
github.com/urfave/cli/v3 v3.1.0/go.mod h1:FJSKtM/9AiiTOJL4fJ6TbMUkxBXn7GO9guZqoZtpYpo=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
Expand All @@ -52,7 +41,6 @@ golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli"
"github.com/urfave/cli/v3"
)

const (
Expand All @@ -47,34 +47,34 @@
)

var commonFlags = []cli.Flag{
cli.StringFlag{

Check failure on line 50 in main.go

View workflow job for this annotation

GitHub Actions / ci

cannot use cli.StringFlag{…} (value of type cli.StringFlag) as cli.Flag value in array or slice literal: cli.FlagBase[string, cli.StringConfig, cli.stringValue] does not implement cli.Flag (method Get has pointer receiver)
Name: "endpoints",
Usage: "Etcd endpoints",
Value: "127.0.0.1:2379",
},
cli.BoolFlag{

Check failure on line 55 in main.go

View workflow job for this annotation

GitHub Actions / ci

cannot use cli.BoolFlag{…} (value of type cli.BoolFlag) as cli.Flag value in array or slice literal: cli.FlagBase[bool, cli.BoolConfig, cli.boolValue] does not implement cli.Flag (method Get has pointer receiver)
Name: "debug",
Usage: "Verbose logging information for debugging purposes",
EnvVar: "RANCHER_DEBUG",

Check failure on line 58 in main.go

View workflow job for this annotation

GitHub Actions / ci

unknown field EnvVar in struct literal of type cli.BoolFlag
},
cli.StringFlag{

Check failure on line 60 in main.go

View workflow job for this annotation

GitHub Actions / ci

cannot use cli.StringFlag{…} (value of type cli.StringFlag) as cli.Flag value in array or slice literal: cli.FlagBase[string, cli.StringConfig, cli.stringValue] does not implement cli.Flag (method Get has pointer receiver)
Name: "name",
Usage: "Backup name to take once",
},
cli.StringFlag{

Check failure on line 64 in main.go

View workflow job for this annotation

GitHub Actions / ci

cannot use cli.StringFlag{…} (value of type cli.StringFlag) as cli.Flag value in array or slice literal: cli.FlagBase[string, cli.StringConfig, cli.stringValue] does not implement cli.Flag (method Get has pointer receiver)
Name: "cacert",
Usage: "Etcd CA client certificate path",
EnvVar: "ETCD_CACERT",

Check failure on line 67 in main.go

View workflow job for this annotation

GitHub Actions / ci

unknown field EnvVar in struct literal of type cli.StringFlag
},
cli.StringFlag{

Check failure on line 69 in main.go

View workflow job for this annotation

GitHub Actions / ci

cannot use cli.StringFlag{…} (value of type cli.StringFlag) as cli.Flag value in array or slice literal: cli.FlagBase[string, cli.StringConfig, cli.stringValue] does not implement cli.Flag (method Get has pointer receiver)
Name: "cert",
Usage: "Etcd client certificate path",
EnvVar: "ETCD_CERT",

Check failure on line 72 in main.go

View workflow job for this annotation

GitHub Actions / ci

unknown field EnvVar in struct literal of type cli.StringFlag
},
cli.StringFlag{

Check failure on line 74 in main.go

View workflow job for this annotation

GitHub Actions / ci

cannot use cli.StringFlag{…} (value of type cli.StringFlag) as cli.Flag value in array or slice literal: cli.FlagBase[string, cli.StringConfig, cli.stringValue] does not implement cli.Flag (method Get has pointer receiver)
Name: "key",
Usage: "Etcd client key path",
EnvVar: "ETCD_KEY",

Check failure on line 77 in main.go

View workflow job for this annotation

GitHub Actions / ci

unknown field EnvVar in struct literal of type cli.StringFlag
},
cli.StringFlag{
Name: "local-endpoint",
Expand Down