Skip to content

Commit

Permalink
Add flags docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
raz-amir committed Jan 31, 2024
1 parent 2c4c9de commit 33d5b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions reposerver/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ func WithCMPTarExcludedGlobs(excludedGlobs []string) GenerateManifestOpt {
}
}

// WithPreserveDependenciesChartsArchives defines whether to preserve dependencies charts archives
func WithPreserveDependenciesChartsArchives(val bool) GenerateManifestOpt {
return func(o *generateManifestOpt) {
o.preserveDependenciesChartsArchives = val
Expand Down
1 change: 1 addition & 0 deletions util/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func WithEventHandlers(handlers EventHandlers) ClientOpts {
}
}

// WithPreserveDependenciesChartsArchives sets the flag to preserve dependencies charts archives
func WithPreserveDependenciesChartsArchives() ClientOpts {
return func(c *nativeGitClient) {
c.preserveDependenciesChartsArchives = true
Expand Down

0 comments on commit 33d5b01

Please sign in to comment.