Files
helmfile/pkg/config/init.go
T
xiaomudk 6dcde20d7a Add subcommand init for checks and installs helmfile deps (#389)
* Add subcommand init for checks and installs helmfile deps

Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-03 14:51:30 +08:00

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
}