mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-21 12:50:02 +02:00
feat: show live output from the Helm binary (#286)
* feat: show live output from the Helm binary Signed-off-by: Rodrigo Fior Kuntzer <rodrigo@miro.com> * fixup! Merge branch 'main' into enable-live-output Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
@@ -44,6 +44,8 @@ type GlobalOptions struct {
|
||||
AllowNoMatchingRelease bool
|
||||
// logger is the logger to use.
|
||||
logger *zap.SugaredLogger
|
||||
// EnableLiveOutput enables live output from the Helm binary stdout/stderr into Helmfile own stdout/stderr
|
||||
EnableLiveOutput bool
|
||||
}
|
||||
|
||||
// Logger returns the logger to use.
|
||||
@@ -120,6 +122,11 @@ func (g *GlobalImpl) StateValuesFiles() []string {
|
||||
return g.GlobalOptions.StateValuesFile
|
||||
}
|
||||
|
||||
// EnableLiveOutput return when to pipe the stdout and stderr from Helm live to the helmfile stdout
|
||||
func (g *GlobalImpl) EnableLiveOutput() bool {
|
||||
return g.GlobalOptions.EnableLiveOutput
|
||||
}
|
||||
|
||||
// Logger returns the logger
|
||||
func (g *GlobalImpl) Logger() *zap.SugaredLogger {
|
||||
return g.GlobalOptions.logger
|
||||
|
||||
Reference in New Issue
Block a user