Update CLI to use @main

pull/16/head
yexulei.k 1 year ago
parent 66dde8da13
commit 24e05b441f

@ -9,6 +9,7 @@ import StableDiffusion
import UniformTypeIdentifiers
@available(iOS 16.2, macOS 13.1, *)
@main
struct StableDiffusionSample: ParsableCommand {
static let configuration = CommandConfiguration(
@ -205,9 +206,3 @@ enum SchedulerOption: String, ExpressibleByArgument {
}
}
}
if #available(iOS 16.2, macOS 13.1, *) {
StableDiffusionSample.main()
} else {
print("Unsupported OS")
}
Loading…
Cancel
Save