1
0
Mirror von https://github.com/maxgoedjen/secretive.git synchronisiert 2026-03-25 10:37:23 +01:00

Changed SSH key comment

Signed-off-by: Alex Lavallee <73203142+lavalleeale@users.noreply.github.com>
Dieser Commit ist enthalten in:
Alex Lavallee
2020-11-29 15:40:52 -08:00
Ursprung 6c3748b6bf
Commit 3eaf155071

Datei anzeigen

@@ -21,19 +21,19 @@ struct SecretDetailView<SecretType: Secret>: View {
.frame(minHeight: 200, maxHeight: .infinity)
}
var dashedKeyName: String {
secret.name.replacingOccurrences(of: " ", with: "-")
var dashedUserName: String {
NSUserName().replacingOccurrences(of: " ", with: "-")
}
var dashedHostName: String {
["secretive", Host.current().localizedName, "local"]
[Host.current().localizedName, "local"]
.compactMap { $0 }
.joined(separator: ".")
.replacingOccurrences(of: " ", with: "-")
}
var keyString: String {
keyWriter.openSSHString(secret: secret, comment: "\(dashedKeyName)@\(dashedHostName)")
keyWriter.openSSHString(secret: secret, comment: "\(dashedUserName)@\(dashedHostName)")
}
func copy() {