Caps-Train/Sources/CapTrain.swift
2023-10-23 12:28:35 +02:00

19 lines
472 B
Swift

import ArgumentParser
import Foundation
@main
struct CapTrain: AsyncParsableCommand {
@Argument(help: "The path to the configuration file")
var configPath: String
func run() async throws {
let configurationFileUrl = URL(fileURLWithPath: configPath)
let configuration = try Configuration(at: configurationFileUrl)
let creator = try ClassifierCreator(configuration: configuration)
try await creator.run()
}
}