Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Oct 23, 2023
1 parent 46ac264 commit 003b62b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions command/secrets/output/secrets_output.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
package output

import (
"fmt"

"github.com/0xPolygon/polygon-edge/command"
"github.com/spf13/cobra"
)

const (
outputFlagDesc = "output the %s from the provided secrets manager"
)

func GetCommand() *cobra.Command {
secretsOutputCmd := &cobra.Command{
Use: "output",
Expand Down Expand Up @@ -38,24 +44,21 @@ func setFlags(cmd *cobra.Command) {
&params.outputBLS,
blsFlag,
false,
"output only the BLS public key "+
"from the provided secrets manager",
fmt.Sprintf(outputFlagDesc, "BLS public key"),
)

cmd.Flags().BoolVar(
&params.outputNodeID,
nodeIDFlag,
false,
"output only the node id "+
"from the provided secrets manager",
fmt.Sprintf(outputFlagDesc, "node id"),
)

cmd.Flags().BoolVar(
&params.outputValidator,
validatorFlag,
false,
"output only the validator key address "+
"from the provided secrets manager",
fmt.Sprintf(outputFlagDesc, "validator address"),
)

cmd.MarkFlagsMutuallyExclusive(dataDirFlag, configFlag)
Expand Down

0 comments on commit 003b62b

Please sign in to comment.