mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 21:41:31 +00:00
22 lines
482 B
Swift
22 lines
482 B
Swift
/*
|
|
* darwin-apk © 2024 Gay Pizza Specifications
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import Foundation
|
|
import ArgumentParser
|
|
import darwin_apk
|
|
|
|
struct DpkUpdateCommand: ParsableCommand {
|
|
static let configuration = CommandConfiguration(
|
|
commandName: "update",
|
|
abstract: "Update the system package repositories.",
|
|
aliases: [ "u" ])
|
|
|
|
func run() throws {
|
|
print("Updating package repositories")
|
|
var updater = ApkIndexUpdater()
|
|
updater.update()
|
|
}
|
|
}
|