move interactive option to global (#370)

Fixes #366

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-09-18 18:47:40 +09:00
committed by GitHub
parent 7d88370310
commit 18eee1fa47
10 changed files with 8 additions and 32 deletions
-7
View File
@@ -26,8 +26,6 @@ type SyncOptions struct {
Wait bool
// WaitForJobs is the wait for jobs flag
WaitForJobs bool
// Interactive is true if the user should be prompted for input.
Interactive bool
}
// NewSyncOptions creates a new Apply
@@ -112,8 +110,3 @@ func (t *SyncImpl) Wait() bool {
func (t *SyncImpl) WaitForJobs() bool {
return t.SyncOptions.WaitForJobs
}
// Interactive returns the Interactive
func (t *SyncImpl) Interactive() bool {
return t.SyncOptions.Interactive
}