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
@@ -8,8 +8,6 @@ type DestroyOptions struct {
Concurrency int
// SkipDeps is the skip deps flag
SkipDeps bool
// Interactive is true if the user should be prompted for input.
Interactive bool
}
// NewDestroyOptions creates a new Apply
@@ -45,8 +43,3 @@ func (c *DestroyImpl) Args() string {
func (c *DestroyImpl) SkipDeps() bool {
return c.DestroyOptions.SkipDeps
}
// Interactive returns the Interactive
func (c *DestroyImpl) Interactive() bool {
return c.DestroyOptions.Interactive
}