From 99705cd6b97107bfd904a9b3f0d0e5f0703c73c8 Mon Sep 17 00:00:00 2001 From: Fredrik Liv Date: Thu, 20 Feb 2020 15:01:13 +0100 Subject: [PATCH] Added detailed exitcode flag to revision, release and rollback --- cmd/release.go | 1 + cmd/revision.go | 1 + cmd/rollback.go | 1 + 3 files changed, 3 insertions(+) diff --git a/cmd/release.go b/cmd/release.go index 6a74c91b..e6e431f8 100644 --- a/cmd/release.go +++ b/cmd/release.go @@ -73,6 +73,7 @@ func releaseCmd() *cobra.Command { releaseCmd.Flags().BoolP("suppress-secrets", "q", false, "suppress secrets in the output") releaseCmd.Flags().BoolVar(&diff.showSecrets, "show-secrets", false, "do not redact secret values in the output") + releaseCmd.Flags().BoolVar(&diff.detailedExitCode, "detailed-exitcode", false, "return a non-zero exit code when there are changes") releaseCmd.Flags().StringArrayVar(&diff.suppressedKinds, "suppress", []string{}, "allows suppression of the values listed in the diff output") releaseCmd.Flags().IntVarP(&diff.outputContext, "context", "C", -1, "output NUM lines of context around changes") releaseCmd.Flags().BoolVar(&diff.includeTests, "include-tests", false, "enable the diffing of the helm test hooks") diff --git a/cmd/revision.go b/cmd/revision.go index ce2363d3..c70b7381 100644 --- a/cmd/revision.go +++ b/cmd/revision.go @@ -83,6 +83,7 @@ func revisionCmd() *cobra.Command { revisionCmd.Flags().BoolP("suppress-secrets", "q", false, "suppress secrets in the output") revisionCmd.Flags().BoolVar(&diff.showSecrets, "show-secrets", false, "do not redact secret values in the output") + revisionCmd.Flags().BoolVar(&diff.detailedExitCode, "detailed-exitcode", false, "return a non-zero exit code when there are changes") revisionCmd.Flags().StringArrayVar(&diff.suppressedKinds, "suppress", []string{}, "allows suppression of the values listed in the diff output") revisionCmd.Flags().IntVarP(&diff.outputContext, "context", "C", -1, "output NUM lines of context around changes") revisionCmd.Flags().BoolVar(&diff.includeTests, "include-tests", false, "enable the diffing of the helm test hooks") diff --git a/cmd/rollback.go b/cmd/rollback.go index dccdf82a..42133663 100644 --- a/cmd/rollback.go +++ b/cmd/rollback.go @@ -75,6 +75,7 @@ func rollbackCmd() *cobra.Command { rollbackCmd.Flags().BoolP("suppress-secrets", "q", false, "suppress secrets in the output") rollbackCmd.Flags().BoolVar(&diff.showSecrets, "show-secrets", false, "do not redact secret values in the output") + rollbackCmd.Flags().BoolVar(&diff.detailedExitCode, "detailed-exitcode", false, "return a non-zero exit code when there are changes") rollbackCmd.Flags().StringArrayVar(&diff.suppressedKinds, "suppress", []string{}, "allows suppression of the values listed in the diff output") rollbackCmd.Flags().IntVarP(&diff.outputContext, "context", "C", -1, "output NUM lines of context around changes") rollbackCmd.Flags().BoolVar(&diff.includeTests, "include-tests", false, "enable the diffing of the helm test hooks")