feat(config): warn_on_delete, warn_on_overwrite, display_art toggles in config
This commit is contained in:
parent
62c770dbf3
commit
6efa9863fe
5 changed files with 43 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue