Skip to content

Commit

Permalink
Migrate to urfave/cli/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
willianpaixao committed Apr 24, 2022
1 parent 9e0a100 commit 83556c4
Show file tree
Hide file tree
Showing 53 changed files with 385 additions and 381 deletions.
2 changes: 1 addition & 1 deletion cmd/abigen/main.go
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/internal/flags"
"github.com/ethereum/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/checkpoint-admin/common.go
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

// newClient creates a client with specified remote URL.
Expand Down
2 changes: 1 addition & 1 deletion cmd/checkpoint-admin/exec.go
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var commandDeploy = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/checkpoint-admin/main.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/common/fdlimit"
"github.com/ethereum/go-ethereum/internal/flags"
"github.com/ethereum/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/checkpoint-admin/status.go
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var commandStatus = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/clef/main.go
Expand Up @@ -56,7 +56,7 @@ import (
"github.com/ethereum/go-ethereum/signer/storage"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

const legalWarning = `
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/discv4cmd.go
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/discv5cmd.go
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/devp2p/internal/v5test"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/p2p/discover"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/dns_cloudflare.go
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/cloudflare/cloudflare-go"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/p2p/dnsdisc"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/dns_route53.go
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/route53/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/p2p/dnsdisc"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/dnscmd.go
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/ethereum/go-ethereum/console/prompt"
"github.com/ethereum/go-ethereum/p2p/dnsdisc"
"github.com/ethereum/go-ethereum/p2p/enode"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/enrcmd.go
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr"
"github.com/ethereum/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var enrdumpCommand = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/keycmd.go
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/p2p/enode"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/main.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/internal/debug"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/nodesetcmd.go
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/enr"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/rlpxcmd.go
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/rlpx"
"github.com/ethereum/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/runtest.go
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/devp2p/internal/v4test"
"github.com/ethereum/go-ethereum/internal/utesting"
"github.com/ethereum/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkey/changepassword.go
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var newPassphraseFlag = cli.StringFlag{
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkey/generate.go
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/crypto"
"github.com/google/uuid"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

type outputGenerate struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkey/inspect.go
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/crypto"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

type outputInspect struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkey/main.go
Expand Up @@ -21,7 +21,7 @@ import (
"os"

"github.com/ethereum/go-ethereum/internal/flags"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkey/message.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

type outputSign struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkey/utils.go
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/crypto"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

// getPassphrase obtains a passphrase given by the user. It first checks the
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/compiler.go
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"

"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var compileCommand = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/disasm.go
Expand Up @@ -23,7 +23,7 @@ import (
"strings"

"github.com/ethereum/go-ethereum/core/asm"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var disasmCommand = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/block.go
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

//go:generate go run github.com/fjl/gencodec -type header -field-override headerMarshaling -out gen_header.go
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/flags.go
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/transaction.go
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

type result struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/transition.go
Expand Up @@ -39,7 +39,7 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/utils.go
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"os"

"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

// readFile reads the json-data in the provided path and marshals into dest.
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/main.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/internal/flags"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var gitCommit = "" // Git SHA1 commit hash of the release (set via linker flags)
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/runner.go
Expand Up @@ -39,7 +39,7 @@ import (
"github.com/ethereum/go-ethereum/eth/tracers/logger"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var runCommand = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/staterunner.go
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/tests"

"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var stateTestCommand = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/accountcmd.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/chaincmd.go
Expand Up @@ -38,7 +38,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/node"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/config.go
Expand Up @@ -25,7 +25,7 @@ import (
"reflect"
"unicode"

"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"

"github.com/ethereum/go-ethereum/accounts/external"
"github.com/ethereum/go-ethereum/accounts/keystore"
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/consolecmd.go
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/console"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/dbcmd.go
Expand Up @@ -40,7 +40,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/trie"
"github.com/olekukonko/tablewriter"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/main.go
Expand Up @@ -44,7 +44,7 @@ import (
_ "github.com/ethereum/go-ethereum/eth/tracers/js"
_ "github.com/ethereum/go-ethereum/eth/tracers/native"

"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/misccmd.go
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/consensus/ethash"
"github.com/ethereum/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/snapshot.go
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/trie"
cli "gopkg.in/urfave/cli.v1"
cli "github.com/urfave/cli/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/usage.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/internal/debug"
"github.com/ethereum/go-ethereum/internal/flags"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

// AppHelpFlagGroups is the application flags, grouped by functionality.
Expand Down
2 changes: 1 addition & 1 deletion cmd/geth/version_check.go
Expand Up @@ -27,7 +27,7 @@ import (

"github.com/ethereum/go-ethereum/log"
"github.com/jedisct1/go-minisign"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var gethPubKeys []string = []string{
Expand Down
2 changes: 1 addition & 1 deletion cmd/p2psim/main.go
Expand Up @@ -51,7 +51,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/simulations"
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
"github.com/ethereum/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
"github.com/urfave/cli/v2"
)

var client *simulations.Client
Expand Down

0 comments on commit 83556c4

Please sign in to comment.