mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🐛 Fix list command after merge mistake
This commit is contained in:
parent
659617edbe
commit
83a1da9df7
1 changed files with 7 additions and 4 deletions
|
@ -35,10 +35,13 @@ public struct ListCommand: CommandProtocol {
|
|||
print("No installed apps found")
|
||||
return .success(())
|
||||
}
|
||||
|
||||
let output = AppListFormatter.format(products: products)
|
||||
print(output)
|
||||
|
||||
for product in products {
|
||||
var appName = product.appName
|
||||
if appName == "" {
|
||||
appName = product.bundleIdentifier
|
||||
}
|
||||
print("\(product.itemIdentifier) \(appName) (\(product.bundleVersion))")
|
||||
}
|
||||
return .success(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue