From a3c5cefaefbfbec370d5a21cd99ab89ebb54b104 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 9 Mar 2025 14:42:35 +0100 Subject: [PATCH] Define the "archivesFolder" property for the AppBuilder builder used to be build the app in the app target. --- App/Sources/App.swift | 8 ++++++-- App/Sources/{ => Options}/AppOptions.swift | 0 2 files changed, 6 insertions(+), 2 deletions(-) rename App/Sources/{ => Options}/AppOptions.swift (100%) diff --git a/App/Sources/App.swift b/App/Sources/App.swift index 77ab0fe..cc558b8 100644 --- a/App/Sources/App.swift +++ b/App/Sources/App.swift @@ -11,8 +11,12 @@ struct App: AsyncParsableCommand { // MARK: Functions mutating func run() async throws { - let builder = AppBuilder(name: "DocCRepo") - let app = try await builder(options) + let appBuilder = AppBuilder( + appName: "Doxy", + archivesFolder: "Resources/Archives" + ) + + let app = try await appBuilder(options) try await app.runService() } diff --git a/App/Sources/AppOptions.swift b/App/Sources/Options/AppOptions.swift similarity index 100% rename from App/Sources/AppOptions.swift rename to App/Sources/Options/AppOptions.swift