mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 14:47:44 +02:00
* feat: add/expose cli flags Signed-off-by: Hans Song <hans.m.song@gmail.com> * fix tests Signed-off-by: Hans Song <hans.m.song@gmail.com> * remove skipdeps from subcommand options Signed-off-by: Hans Song <hans.m.song@gmail.com> * remove skip-deps from subcommand flags Signed-off-by: Hans Song <hans.m.song@gmail.com> * remove SkipDeps from subcommand implementations Signed-off-by: Hans Song <hans.m.song@gmail.com> * update doco with new flags Signed-off-by: Hans Song <hans.m.song@gmail.com> --------- Signed-off-by: Hans Song <hans.m.song@gmail.com>
46 lines
1.1 KiB
Go
46 lines
1.1 KiB
Go
package config
|
|
|
|
// FetchOptions is the options for the build command
|
|
type FetchOptions struct {
|
|
// Concurrency is the maximum number of concurrent helm processes to run, 0 is unlimited
|
|
Concurrency int
|
|
// OutputDir is the output directory
|
|
OutputDir string
|
|
// OutputDirTemplate is the go template to generate the path of output directory
|
|
OutputDirTemplate string
|
|
}
|
|
|
|
// NewFetchOptions creates a new Apply
|
|
func NewFetchOptions() *FetchOptions {
|
|
return &FetchOptions{}
|
|
}
|
|
|
|
// FetchImpl is impl for applyOptions
|
|
type FetchImpl struct {
|
|
*GlobalImpl
|
|
*FetchOptions
|
|
}
|
|
|
|
// NewFetchImpl creates a new FetchImpl
|
|
func NewFetchImpl(g *GlobalImpl, b *FetchOptions) *FetchImpl {
|
|
return &FetchImpl{
|
|
GlobalImpl: g,
|
|
FetchOptions: b,
|
|
}
|
|
}
|
|
|
|
// Concurrency returns the concurrency
|
|
func (c *FetchImpl) Concurrency() int {
|
|
return c.FetchOptions.Concurrency
|
|
}
|
|
|
|
// OutputDir returns the args
|
|
func (c *FetchImpl) OutputDir() string {
|
|
return c.FetchOptions.OutputDir
|
|
}
|
|
|
|
// OutputDirTemplate returns the go template to generate the path of output directory
|
|
func (c *FetchImpl) OutputDirTemplate() string {
|
|
return c.FetchOptions.OutputDirTemplate
|
|
}
|