mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-22 03:24:40 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b83bce4544 |
@@ -30,7 +30,9 @@ struct Login: AsyncParsableCommand {
|
|||||||
|
|
||||||
if let username = username {
|
if let username = username {
|
||||||
user = username
|
user = username
|
||||||
password = readLine()!
|
|
||||||
|
let passwordData = FileHandle.standardInput.readDataToEndOfFile()
|
||||||
|
password = String(decoding: passwordData, as: UTF8.self)
|
||||||
} else {
|
} else {
|
||||||
(user, password) = try StdinCredentials.retrieve()
|
(user, password) = try StdinCredentials.retrieve()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user