fix: confirm when deleting template (#2866)

* prompt for confirmation before deleting templates (#2830)

* populate templateNames from the interactive picker too

* allow skipping delete confirmation prompt with --yes flag

* eliminate unnecessary newline

* test both confirmation of delete and `--yes` with no confirmation

* fix failing test that needed --yes

* remove unnecessary empty line the linter disliked

* make the tests correct
This commit is contained in:
Ketan Gangatirkar
2022-07-11 13:13:56 -05:00
committed by GitHub
parent fa7dcf615a
commit 536c77af5d
3 changed files with 82 additions and 12 deletions
+1
View File
@@ -229,6 +229,7 @@ func TestTemplateCreate(t *testing.T) {
"templates",
"delete",
"my-template",
"--yes",
}
cmd, root := clitest.New(t, args...)
clitest.SetupConfig(t, client, root)