Skip to content

Commit 479a806

Browse files
author
Anand
committed
ref issue #21 - Added assume-yes option for removal
1 parent d5a4b60 commit 479a806

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const DELIMSIZE int = 69
2222
type SettingsOverride struct {
2323
ShowPasswords bool
2424
CopyPassword bool
25+
AssumeYes bool
2526
}
2627

2728
// Settings structure for local config
@@ -444,6 +445,11 @@ func setCopyPasswordToClipboard() error {
444445
return nil
445446
}
446447

448+
func setAssumeYes() error {
449+
settingsRider.AssumeYes = true
450+
return nil
451+
}
452+
447453
func copyPasswordToClipboard(passwd string) {
448454
clipboard.WriteAll(passwd)
449455
}

0 commit comments

Comments
 (0)