-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing verbose mode flags (#4286)
* add missing verbose mode flags * add changelog * remove unused debug flag (cherry picked from commit 3152cf5) # Conflicts: # ignite/cmd/chain_lint.go
- Loading branch information
1 parent
f7f0c84
commit 1bd8a5e
Showing
7 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package ignitecmd | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/ignite/cli/v29/ignite/pkg/cliui" | ||
Check failure on line 6 in ignite/cmd/chain_lint.go GitHub Actions / test (ubuntu-latest)
Check failure on line 6 in ignite/cmd/chain_lint.go GitHub Actions / test (ubuntu-latest)
Check failure on line 6 in ignite/cmd/chain_lint.go GitHub Actions / test network on ubuntu-latest
|
||
"github.com/ignite/cli/v29/ignite/services/chain" | ||
Check failure on line 7 in ignite/cmd/chain_lint.go GitHub Actions / test (ubuntu-latest)
|
||
) | ||
|
||
// NewChainLint returns a lint command to build a blockchain app. | ||
func NewChainLint() *cobra.Command { | ||
c := &cobra.Command{ | ||
Use: "lint", | ||
Short: "Lint codebase using golangci-lint", | ||
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...")) | ||
defer session.End() | ||
|
||
chainOption := []chain.Option{ | ||
chain.WithOutputer(session), | ||
chain.CollectEvents(session.EventBus()), | ||
} | ||
|
||
c, err := chain.NewWithHomeFlags(cmd, chainOption...) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
return c.Lint(cmd.Context()) | ||
}, | ||
} | ||
|
||
return c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters