helmfile/pkg/config/deps.go

44 lines
880 B
Go

package config
// DepsOptions is the options for the build command
type DepsOptions struct {
// Args is the args to pass to helm exec
Args string
// SkipRepos is the skip repos flag
SkipRepos bool
}
// NewDepsOptions creates a new Apply
func NewDepsOptions() *DepsOptions {
return &DepsOptions{}
}
// DepsImpl is impl for applyOptions
type DepsImpl struct {
*GlobalImpl
*DepsOptions
}
// NewDepsImpl creates a new DepsImpl
func NewDepsImpl(g *GlobalImpl, b *DepsOptions) *DepsImpl {
return &DepsImpl{
GlobalImpl: g,
DepsOptions: b,
}
}
// Args returns the args
func (d *DepsImpl) Args() string {
return d.DepsOptions.Args
}
// SkipDeps returns the skip deps
func (d *DepsImpl) SkipRepos() bool {
return d.DepsOptions.SkipRepos
}
// IncludeTransitiveNeeds returns the includeTransitiveNeeds
func (d *DepsImpl) IncludeTransitiveNeeds() bool {
return false
}