Conformed the CreateOptions model in the executable target to the Locationable protocol.

This commit is contained in:
Javier Cicchelli 2025-02-18 22:46:47 +01:00
parent 5e35f12bb3
commit a38c9e1d98

View File

@ -1,8 +1,8 @@
import ArgumentParser
import Foundation
import ColibriLibrary
extension Colibri.Create {
struct Options: ParsableArguments {
struct Options: ParsableArguments, Locationable {
// MARK: Properties
@ -11,12 +11,6 @@ extension Colibri.Create {
@Option(name: .shortAndLong)
var location: String?
// MARK: Computed
var locationURL: URL? {
location.flatMap { URL(fileURLWithPath: $0) }
}
}
}