fix: Allow template names to be re-used after deletion (#2454)

Fixes #2152
This commit is contained in:
Mathias Fredriksson
2022-06-17 22:18:07 +03:00
committed by GitHub
parent 289b98978f
commit 17ba4c8e88
5 changed files with 60 additions and 7 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func templateDelete() *cobra.Command {
return xerrors.Errorf("delete template %q: %w", template.Name, err)
}
_, _ = fmt.Fprintln(cmd.ErrOrStderr(), "Deleted template "+cliui.Styles.Code.Render(template.Name)+"!")
_, _ = fmt.Fprintln(cmd.OutOrStdout(), "Deleted template "+cliui.Styles.Code.Render(template.Name)+"!")
}
return nil