From 640be746642c8177fc17611a10a473d61df72deb Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Fri, 2 Aug 2024 04:07:14 +0200 Subject: [PATCH] remove unused debug flag --- ignite/cmd/chain_debug.go | 6 +----- ignite/cmd/chain_faucet.go | 6 +----- ignite/cmd/chain_lint.go | 7 +------ 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/ignite/cmd/chain_debug.go b/ignite/cmd/chain_debug.go index 9933736d13..37220aa0e1 100644 --- a/ignite/cmd/chain_debug.go +++ b/ignite/cmd/chain_debug.go @@ -57,7 +57,6 @@ The debug server stops automatically when the client connection is closed. } flagSetPath(c) - c.Flags().AddFlagSet(flagSetVerbose()) c.Flags().Bool(flagServer, false, "start a debug server") c.Flags().String(flagServerAddress, debugger.DefaultAddress, "debug server address") @@ -67,10 +66,7 @@ The debug server stops automatically when the client connection is closed. func chainDebugHandler(cmd *cobra.Command, _ []string) error { // Prepare session options. // Events are ignored by the session when the debug server UI is used. - options := []cliui.Option{ - cliui.StartSpinnerWithText("Initializing..."), - cliui.WithVerbosity(getVerbosity(cmd)), - } + options := []cliui.Option{cliui.StartSpinnerWithText("Initializing...")} server, _ := cmd.Flags().GetBool(flagServer) if server { options = append(options, cliui.IgnoreEvents()) diff --git a/ignite/cmd/chain_faucet.go b/ignite/cmd/chain_faucet.go index f8d0f25c18..4e2515dedc 100644 --- a/ignite/cmd/chain_faucet.go +++ b/ignite/cmd/chain_faucet.go @@ -21,7 +21,6 @@ func NewChainFaucet() *cobra.Command { flagSetPath(c) c.Flags().AddFlagSet(flagSetHome()) - c.Flags().AddFlagSet(flagSetVerbose()) c.Flags().BoolP("verbose", "v", false, "verbose output") return c @@ -31,10 +30,7 @@ func chainFaucetHandler(cmd *cobra.Command, args []string) error { var ( toAddress = args[0] coins = args[1] - session = cliui.New( - cliui.WithVerbosity(getVerbosity(cmd)), - cliui.StartSpinner(), - ) + session = cliui.New(cliui.StartSpinner()) ) defer session.End() diff --git a/ignite/cmd/chain_lint.go b/ignite/cmd/chain_lint.go index 6aa8f0f3f3..895b6e31c4 100644 --- a/ignite/cmd/chain_lint.go +++ b/ignite/cmd/chain_lint.go @@ -15,10 +15,7 @@ func NewChainLint() *cobra.Command { Long: "The lint command runs the golangci-lint tool to lint the codebase.", Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { - session := cliui.New( - cliui.StartSpinnerWithText("Linting..."), - cliui.WithVerbosity(getVerbosity(cmd)), - ) + session := cliui.New(cliui.StartSpinnerWithText("Linting...")) defer session.End() chainOption := []chain.Option{ @@ -35,7 +32,5 @@ func NewChainLint() *cobra.Command { }, } - c.Flags().AddFlagSet(flagSetVerbose()) - return c }