mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 20:12:38 +02:00
* Add subcommand init for checks and installs helmfile deps Signed-off-by: xiaomudk <xiaomudk@gmail.com>
31 lines
555 B
Go
31 lines
555 B
Go
package config
|
|
|
|
// InitOptions is the options for the init command
|
|
type InitOptions struct {
|
|
Force bool
|
|
}
|
|
|
|
// NewInitOptions creates a new InitOptions
|
|
func NewInitOptions() *InitOptions {
|
|
return &InitOptions{}
|
|
}
|
|
|
|
// InitImpl is impl for InitOptions
|
|
type InitImpl struct {
|
|
*GlobalImpl
|
|
*InitOptions
|
|
}
|
|
|
|
// NewInitImpl creates a new InitImpl
|
|
func NewInitImpl(g *GlobalImpl, b *InitOptions) *InitImpl {
|
|
return &InitImpl{
|
|
GlobalImpl: g,
|
|
InitOptions: b,
|
|
}
|
|
}
|
|
|
|
// Force returns the Force.
|
|
func (b *InitImpl) Force() bool {
|
|
return b.InitOptions.Force
|
|
}
|