Renamed the App and AppOptions in the executable target as Doxy and DoxyOptions respectively.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import ArgumentParser
|
||||
import DoxyLibrary
|
||||
|
||||
/// A command type that runs the service based on given of set of option parameters.
|
||||
@main struct Doxy: AsyncParsableCommand {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
/// An option type that contains all the possible parameters that can be provided to the service.
|
||||
@OptionGroup var options: Options
|
||||
|
||||
// MARK: Functions
|
||||
|
||||
/// Runs the service.
|
||||
mutating func run() async throws {
|
||||
let appBuilder = AppBuilder(
|
||||
name: options.name,
|
||||
archivesPath: options.archivesPath
|
||||
)
|
||||
|
||||
let app = try await appBuilder(options)
|
||||
|
||||
try await app.runService()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user