Skip to content

Commit

Permalink
make lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 14, 2024
1 parent 212005b commit 2b99ece
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ignite/cmd/bubblemodel/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (m MultiNode) View() string {
grayStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // gray
purpleStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("5")) // purple
statusBarStyle := lipgloss.NewStyle().Background(lipgloss.Color("0")) // Status bar style
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) //blue
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) // blue

statusBar := blueStyle.Render("Press q to quit | Press 1-4 to ") + statusBarStyle.Render(runningStyle.Render("start")) + blueStyle.Render("/") + statusBarStyle.Render(stoppedStyle.Render("stop")) + blueStyle.Render(" corresponding node")
output := statusBar + "\n\n"
Expand Down
12 changes: 6 additions & 6 deletions ignite/pkg/chaincmd/in-place-testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ func (c ChainCmd) TestnetInPlaceCommand(newChainID, newOperatorAddress string, o
return c.daemonCommand(command)
}

// Options for testnet multi node
// Options for testnet multi node.
type MultiNodeOption func([]string) []string

// MultiNodeWithChainID returns a MultiNodeOption that appends the chainID option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithChainID(chainID string) MultiNodeOption {
return func(s []string) []string {
if len(chainID) > 0 {
Expand All @@ -61,7 +61,7 @@ func MultiNodeWithChainID(chainID string) MultiNodeOption {
}

// MultiNodeWithDirOutput returns a MultiNodeOption that appends the output directory option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithDirOutput(dirOutput string) MultiNodeOption {
return func(s []string) []string {
if len(dirOutput) > 0 {
Expand All @@ -72,7 +72,7 @@ func MultiNodeWithDirOutput(dirOutput string) MultiNodeOption {
}

// MultiNodeWithNumValidator returns a MultiNodeOption that appends the number of validators option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithNumValidator(numVal string) MultiNodeOption {
return func(s []string) []string {
if len(numVal) > 0 {
Expand All @@ -83,7 +83,7 @@ func MultiNodeWithNumValidator(numVal string) MultiNodeOption {
}

// MultiNodeWithValidatorsStakeAmount returns a MultiNodeOption that appends the stake amounts option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithValidatorsStakeAmount(satkeAmounts string) MultiNodeOption {
return func(s []string) []string {
if len(satkeAmounts) > 0 {
Expand All @@ -94,7 +94,7 @@ func MultiNodeWithValidatorsStakeAmount(satkeAmounts string) MultiNodeOption {
}

// MultiNodeDirPrefix returns a MultiNodeOption that appends the node directory prefix option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeDirPrefix(nodeDirPrefix string) MultiNodeOption {
return func(s []string) []string {
if len(nodeDirPrefix) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion ignite/pkg/chaincmd/runner/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (r Runner) InPlace(ctx context.Context, newChainID, newOperatorAddress stri
)
}

// Initialize config directories & files for a multi-validator testnet locally
// Initialize config directories & files for a multi-validator testnet locally.
func (r Runner) MultiNode(ctx context.Context, options ...chaincmd.MultiNodeOption) error {
runOptions := runOptions{
stdout: os.Stdout,
Expand Down

0 comments on commit 2b99ece

Please sign in to comment.