From 5dc2d2de73d4294046c4dfc7605c0e1741ac3196 Mon Sep 17 00:00:00 2001 From: Florian Inchingolo Date: Wed, 22 Jun 2022 15:45:28 +0200 Subject: [PATCH] fix typo on ignored arg (#31) --- internal/cli/validate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cli/validate.go b/internal/cli/validate.go index 332899b..0d2b3ba 100644 --- a/internal/cli/validate.go +++ b/internal/cli/validate.go @@ -24,7 +24,7 @@ var ( timeoutSecond uint validateInvalSecond uint selfJobName string - ignoreJobs string + ignoredJobs string ) func validateCmd() *cobra.Command { @@ -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) @@ -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 }