mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-20 03:17:49 +02:00
feat: add --skip-trailing-cr to helmfile diff (#625)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user