Skip to content

Commit

Permalink
fix typo on ignored arg (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Inchingolo authored Jun 22, 2022
1 parent d6129ef commit 5dc2d2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
timeoutSecond uint
validateInvalSecond uint
selfJobName string
ignoreJobs string
ignoredJobs string
)

func validateCmd() *cobra.Command {
Expand All @@ -49,7 +49,7 @@ func validateCmd() *cobra.Command {
status.WithSelfJob(selfJobName),
status.WithGitHubOwnerAndRepo(owner, repo),
status.WithGitHubRef(ghRef),
status.WithIgnoredJobs(ignoreJobs),
status.WithIgnoredJobs(ignoredJobs),
)
if err != nil {
return fmt.Errorf("failed to create validator: %w", err)
Expand All @@ -70,7 +70,7 @@ func validateCmd() *cobra.Command {
cmd.PersistentFlags().UintVar(&timeoutSecond, "timeout", 600, "set validate timeout second")
cmd.PersistentFlags().UintVar(&validateInvalSecond, "interval", 10, "set validate interval second")

cmd.PersistentFlags().StringVarP(&ignoreJobs, "ignore", "i", "", "set ignored jobs (comma-separated list)")
cmd.PersistentFlags().StringVarP(&ignoredJobs, "ignored", "i", "", "set ignored jobs (comma-separated list)")

return cmd
}
Expand Down

0 comments on commit 5dc2d2d

Please sign in to comment.