feat: add --skip-trailing-cr to helmfile diff (#625)

This commit is contained in:
William Lahti
2023-05-08 05:23:59 +08:00
committed by GitHub
parent 14a33f998f
commit b6dd7122f9
10 changed files with 71 additions and 10 deletions
+7
View File
@@ -8,6 +8,8 @@ type DiffOptions struct {
Values []string
// DetailedExitcode is the detailed exit code
DetailedExitcode bool
// StripTrailingCR is true if trailing carriage returns should be stripped during diffing
StripTrailingCR bool
// IncludeTests is the include tests flag
IncludeTests bool
// SkipNeeds is the include crds flag
@@ -110,6 +112,11 @@ func (t *DiffImpl) DetailedExitcode() bool {
return t.DiffOptions.DetailedExitcode
}
// StripTrailingCR is true if trailing carriage returns should be stripped during diffing
func (a *DiffImpl) StripTrailingCR() bool {
return a.DiffOptions.StripTrailingCR
}
// Output returns the output
func (t *DiffImpl) DiffOutput() string {
return t.DiffOptions.Output