2025-02-18 23:50:54 +00:00
|
|
|
import ArgumentParser
|
|
|
|
import ColibriLibrary
|
|
|
|
|
|
|
|
extension Colibri {
|
|
|
|
struct Outdated: AsyncParsableCommand {
|
|
|
|
|
|
|
|
// MARK: Properties
|
|
|
|
|
|
|
|
static let configuration = CommandConfiguration(
|
|
|
|
commandName: "outdated-dependencies",
|
|
|
|
abstract: "Check for outdated package dependencies in a Hummingbird app",
|
|
|
|
helpNames: .shortAndLong,
|
|
|
|
aliases: ["outdated"]
|
|
|
|
)
|
|
|
|
|
|
|
|
@OptionGroup var options: Options
|
|
|
|
|
|
|
|
// MARK: Functions
|
|
|
|
|
|
|
|
mutating func run() async throws {
|
|
|
|
let terminalService = TerminalService()
|
|
|
|
|
2025-02-19 00:14:00 +00:00
|
|
|
let updateDependencies = UpdateDependenciesTask(terminalService: terminalService)
|
2025-02-18 23:50:54 +00:00
|
|
|
|
2025-02-19 00:14:00 +00:00
|
|
|
try await updateDependencies(at: options.locationURL, checkOutdated: true)
|
2025-02-18 23:50:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|