mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 21:41:31 +00:00
Initial implementation of APKINDEX, fetching, reading, parsing, & merging
This commit is contained in:
18
Sources/dpk-cli/Subcommands/DpkUpdateCommand.swift
Normal file
18
Sources/dpk-cli/Subcommands/DpkUpdateCommand.swift
Normal file
@ -0,0 +1,18 @@
|
||||
// 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user