mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Add keeper password manager template
This commit is contained in:
parent
99999eeaec
commit
fd3c6f034c
1 changed files with 15 additions and 1 deletions
|
@ -75,7 +75,21 @@ public interface ExternalPasswordManagerTemplate extends PrefsChoiceValue {
|
|||
}
|
||||
};
|
||||
|
||||
List<ExternalPasswordManagerTemplate> ALL = Stream.of(ONEPASSWORD, BITWARDEN, DASHLANE, LASTPASS, MACOS_KEYCHAIN)
|
||||
|
||||
ExternalPasswordManagerTemplate KEEPER = new ExternalPasswordManagerTemplate() {
|
||||
@Override
|
||||
public String getTemplate() {
|
||||
var exec = OsType.getLocal() == OsType.WINDOWS ? "@keeper" : "keeper";
|
||||
return exec + " get $KEY --format password --unmask";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return "keeper";
|
||||
}
|
||||
};
|
||||
|
||||
List<ExternalPasswordManagerTemplate> ALL = Stream.of(ONEPASSWORD, BITWARDEN, DASHLANE, LASTPASS, KEEPER, MACOS_KEYCHAIN)
|
||||
.filter(externalPasswordManager -> externalPasswordManager.isSelectable())
|
||||
.toList();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue