Skip to content

Commit

Permalink
remove unused debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Aug 2, 2024
1 parent a8a591d commit 640be74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
6 changes: 1 addition & 5 deletions ignite/cmd/chain_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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())
Expand Down
6 changes: 1 addition & 5 deletions ignite/cmd/chain_faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()

Expand Down
7 changes: 1 addition & 6 deletions ignite/cmd/chain_lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -35,7 +32,5 @@ func NewChainLint() *cobra.Command {
},
}

c.Flags().AddFlagSet(flagSetVerbose())

return c
}

0 comments on commit 640be74

Please sign in to comment.