feat: default keychain helper
This commit is contained in:
@ -40,6 +40,14 @@ func init() { // nolint[noinit]
|
||||
if _, err := exec.LookPath("gnome-keyring"); err == nil {
|
||||
Helpers[GnomeKeyring] = newGnomeKeyringHelper
|
||||
}
|
||||
|
||||
// If GnomeKeyring is available, use it by default.
|
||||
// Otherwise, if pass is available, use it by default.
|
||||
if _, ok := Helpers[GnomeKeyring]; ok {
|
||||
defaultHelper = GnomeKeyring
|
||||
} else if _, ok := Helpers[Pass]; ok {
|
||||
defaultHelper = Pass
|
||||
}
|
||||
}
|
||||
|
||||
func newPassHelper(string) (credentials.Helper, error) {
|
||||
|
||||
Reference in New Issue
Block a user