Skip to content

Commit

Permalink
Fixed the lint error
Browse files Browse the repository at this point in the history
Signed-off-by: neilnaveen <[email protected]>
  • Loading branch information
neilnaveen committed Jun 17, 2024
1 parent af3fa37 commit 2efba9f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cmd/guacone/cmd/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,14 @@ func validateScorecardFlags(

func init() {
certifierCmd.AddCommand(scorecardCmd)
scorecardCmd.Flags().Bool("use-scorecard-api", false, "use the scorecard API")
viper.BindPFlag("use-scorecard-api", scorecardCmd.Flags().Lookup("use-scorecard-api"))
set, err := cli.BuildFlags([]string{"use-scorecard-api"})
if err != nil {
fmt.Fprintf(os.Stderr, "failed to setup flag: %v", err)
os.Exit(1)
}
scorecardCmd.Flags().AddFlagSet(set)
if err := viper.BindPFlags(scorecardCmd.Flags()); err != nil {
fmt.Fprintf(os.Stderr, "failed to bind flags: %v", err)
os.Exit(1)
}
}

0 comments on commit 2efba9f

Please sign in to comment.