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")