mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user