mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
parent
4660b4505b
commit
c7a104a250
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ public struct AccountCommand: CommandProtocol {
|
|||
|
||||
/// Runs the command.
|
||||
public func run(_: Options) -> Result<Void, MASError> {
|
||||
if #available(macOS 12, *) {
|
||||
// Account information is no longer available as of Monterey.
|
||||
// https://github.com/mas-cli/mas/issues/417
|
||||
return .failure(.notSupported)
|
||||
}
|
||||
|
||||
if let account = ISStoreAccount.primaryAccount {
|
||||
print(String(describing: account.identifier))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue