Files
helmfile/pkg/config/repos.go
T
yxxhero 981cce8231 fix: use config for IncludeNeeds in Deps and Repos commands
- Add IncludeNeeds() to DepsConfigProvider and ReposConfigProvider
- Update depsConfig in tests
- Use c.IncludeNeeds() in run.go instead of hardcoded false

Signed-off-by: yxxhero <aiopsclub@163.com>
2026-03-18 08:25:32 +08:00

34 lines
694 B
Go

package config
// ReposOptions is the options for the build command
type ReposOptions struct{}
// NewReposOptions creates a new Apply
func NewReposOptions() *ReposOptions {
return &ReposOptions{}
}
// ReposImpl is impl for applyOptions
type ReposImpl struct {
*GlobalImpl
*ReposOptions
}
// NewReposImpl creates a new ReposImpl
func NewReposImpl(g *GlobalImpl, b *ReposOptions) *ReposImpl {
return &ReposImpl{
GlobalImpl: g,
ReposOptions: b,
}
}
// IncludeNeeds returns the include needs
func (r *ReposImpl) IncludeNeeds() bool {
return false
}
// IncludeTransitiveNeeds returns the include transitive needs
func (r *ReposImpl) IncludeTransitiveNeeds() bool {
return false
}