Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Fix password prompt feedback

Kabir Oberaifbf021f42db1
diff --git a/Sources/SupersignCLISupport/AuthCommand.swift b/Sources/SupersignCLISupport/AuthCommand.swift
index b603f91..5b9439e 100644
--- a/Sources/SupersignCLISupport/AuthCommand.swift
+++ b/Sources/SupersignCLISupport/AuthCommand.swift
@@ -29,6 +29,8 @@ struct AuthOperation {
throw Console.Error("Password cannot be empty.")
}
+ print("Logging in...")
+
let deviceInfo = try DeviceInfo.fetch()
let provider = try ADIDataProvider.adiProvider(
diff --git a/Sources/SupersignCLISupport/Console.swift b/Sources/SupersignCLISupport/Console.swift
index ac0ec87..ba597e3 100644
--- a/Sources/SupersignCLISupport/Console.swift
+++ b/Sources/SupersignCLISupport/Console.swift
@@ -25,6 +25,8 @@ enum Console {
try await withStdio { stdin, stdout in
try await stdout.write(ByteBuffer(bytes: message.utf8))
+ fflush(stdoutSafe)
+
var data = Data()
for try await chunk in stdin {
let view = chunk.readableBytesView