mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +00:00
🐛 Left justify app ID column to restore brew bundle compatibility
This commit is contained in:
parent
6c346c1f17
commit
872f0e3faf
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ struct AppListFormatter {
|
|||
var output: String = ""
|
||||
|
||||
for product in products {
|
||||
let appId = product.itemIdentifier.intValue
|
||||
let appId = product.itemIdentifier
|
||||
let appName = product.appNameOrBbundleIdentifier.padding(toLength: maxLength, withPad: " ", startingAt: 0)
|
||||
let version = product.bundleVersion
|
||||
|
||||
output += String(format: "%12d %@ (%@)\n", appId, appName, version)
|
||||
output += "\(appId) \(appName) (\(version))\n"
|
||||
}
|
||||
|
||||
return output.trimmingCharacters(in: .newlines)
|
||||
|
|
Loading…
Reference in a new issue