From a38c9e1d986cc0dc80781b4a7ab919a249a91482 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Tue, 18 Feb 2025 22:46:47 +0100 Subject: [PATCH] Conformed the CreateOptions model in the executable target to the Locationable protocol. --- Executable/Sources/Options/CreateOptions.swift | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Executable/Sources/Options/CreateOptions.swift b/Executable/Sources/Options/CreateOptions.swift index 8050ea8..40d66c1 100644 --- a/Executable/Sources/Options/CreateOptions.swift +++ b/Executable/Sources/Options/CreateOptions.swift @@ -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) } - } - + } }