🐛 Fix list command after merge mistake

This commit is contained in:
Ben Chatelain 2020-09-07 12:20:12 -06:00
parent 659617edbe
commit 83a1da9df7

View file

@ -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(())
}
}