⚠️ Add a temporary warning about macOS Monterey

This commit is contained in:
Chris Araman 2021-11-01 21:15:31 -07:00 committed by Chris Araman
parent 9305160b2e
commit 02ceea49cd

View file

@ -7,10 +7,19 @@
//
import Commandant
import Foundation
import MasKit
MasKit.initialize()
let monterey = OperatingSystemVersion(majorVersion: 12, minorVersion: 0, patchVersion: 0)
if ProcessInfo.processInfo.isOperatingSystemAtLeast(monterey) {
printWarning(
"mas is not yet functional on macOS Monterey (12) due to changes in macOS frameworks. "
+ "To track progress or to *contribute* to fixing this issue, please see: "
+ "https://github.com/mas-cli/mas/issues/417")
}
let registry = CommandRegistry<MASError>()
let helpCommand = HelpCommand(registry: registry)