Initial implementation of APKINDEX, fetching, reading, parsing, & merging

This commit is contained in:
2024-11-08 21:22:33 +11:00
parent f6cbddb608
commit 941dfae317
18 changed files with 877 additions and 65 deletions

View File

@ -0,0 +1,17 @@
// SPDX-License-Identifier: Apache-2.0
import ArgumentParser
struct DpkInstallCommand: ParsableCommand {
static let configuration = CommandConfiguration(
commandName: "add",
abstract: "Install package(s) to the system.",
aliases: [ "a", "install" ])
@Argument(help: "One or more package names to install to the system.")
var packages: [String]
func run() throws {
print("installing \"\(packages.joined(separator: "\", \""))\"")
}
}