add ability to pass --purge to delete

This commit is contained in:
Jacob McCann
2018-05-02 15:32:14 -05:00
parent 1fabc3427b
commit 105c821740
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -45,6 +45,7 @@ type (
Timeout string `json:"timeout"`
Force bool `json:"force"`
HelmRepos []string `json:"helm_repos"`
Purge bool `json:"purge"`
}
// Plugin default
Plugin struct {
@@ -68,6 +69,9 @@ func setDeleteCommand(p *Plugin) {
if p.Config.DryRun {
delete = append(delete, "--dry-run")
}
if p.Config.Purge {
delete = append(delete, "--purge")
}
p.command = delete
}