mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 21:41:31 +00:00
Simple info/show command
This commit is contained in:
@ -7,12 +7,18 @@ public struct ApkIndex: Sendable {
|
||||
public let packages: [ApkIndexPackage]
|
||||
}
|
||||
|
||||
extension ApkIndex {
|
||||
public extension ApkIndex {
|
||||
func first(name: String) -> ApkIndexPackage? {
|
||||
self.packages.first {
|
||||
$0.name == name
|
||||
}
|
||||
}
|
||||
|
||||
func filter(name: String) -> [ApkIndexPackage] {
|
||||
self.packages.filter {
|
||||
$0.name == name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public extension ApkIndex {
|
||||
|
Reference in New Issue
Block a user