feat(config): warn_on_delete, warn_on_overwrite, display_art toggles in config

This commit is contained in:
Lewis Wynne 2025-12-18 13:30:38 +00:00
parent 62c770dbf3
commit 6efa9863fe
5 changed files with 43 additions and 19 deletions

View file

@ -70,7 +70,7 @@ func del(cmd *cobra.Command, args []string) error {
return fmt.Errorf("cannot remove: No such key")
}
if !force {
if !force && config.WarnOnDelete {
var confirm string
quotedTargets := make([]string, 0, len(targetKeys))
for _, t := range targetKeys {