mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-22 11:26:58 +02:00
move interactive option to global (#370)
Fixes #366 Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -46,6 +46,8 @@ type GlobalOptions struct {
|
||||
logger *zap.SugaredLogger
|
||||
// EnableLiveOutput enables live output from the Helm binary stdout/stderr into Helmfile own stdout/stderr
|
||||
EnableLiveOutput bool
|
||||
// Interactive is true if the user should be prompted for input.
|
||||
Interactive bool
|
||||
}
|
||||
|
||||
// Logger returns the logger to use.
|
||||
@@ -179,3 +181,8 @@ func (g *GlobalImpl) ValidateConfig() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Interactive returns the Interactive
|
||||
func (g *GlobalImpl) Interactive() bool {
|
||||
return g.GlobalOptions.Interactive
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user