Fix password prompt feedback
- Commit
fbf021f42db115ac62411ca9cf250a9d2c0bfb33- Author
- Kabir Oberai <[email protected]>
- When
- 2024-12-21 16:53 UTC (1 year ago)
- Parents
21efc61
Diff
Sources/SupersignCLISupport/AuthCommand.swift
diff --git a/Sources/SupersignCLISupport/AuthCommand.swift b/Sources/SupersignCLISupport/AuthCommand.swiftindex 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(
Sources/SupersignCLISupport/Console.swift
diff --git a/Sources/SupersignCLISupport/Console.swift b/Sources/SupersignCLISupport/Console.swiftindex 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