mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +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")
|
print("No installed apps found")
|
||||||
return .success(())
|
return .success(())
|
||||||
}
|
}
|
||||||
|
for product in products {
|
||||||
let output = AppListFormatter.format(products: products)
|
var appName = product.appName
|
||||||
print(output)
|
if appName == "" {
|
||||||
|
appName = product.bundleIdentifier
|
||||||
|
}
|
||||||
|
print("\(product.itemIdentifier) \(appName) (\(product.bundleVersion))")
|
||||||
|
}
|
||||||
return .success(())
|
return .success(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue