mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 21:41:31 +00:00
19 lines
428 B
Swift
19 lines
428 B
Swift
// 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()
|
|
}
|
|
}
|