Skip to content

Commit 0886f33

Browse files
committed
allow skipping delete confirmation prompt with --yes flag
1 parent 5802c6b commit 0886f33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/templatedelete.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
func templateDelete() *cobra.Command {
15-
return &cobra.Command{
15+
cmd := &cobra.Command{
1616
Use: "delete [name...]",
1717
Short: "Delete templates",
1818
RunE: func(cmd *cobra.Command, args []string) error {
@@ -95,4 +95,7 @@ func templateDelete() *cobra.Command {
9595
return nil
9696
},
9797
}
98+
99+
cliui.AllowSkipPrompt(cmd)
100+
return cmd
98101
}

0 commit comments

Comments
 (0)