This PR contains the work done to add the *Build* subcommand that build a *Hummingbird* project from the command line to the `Colibri` command. Reviewed-on: #5 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
22 lines
327 B
Swift
22 lines
327 B
Swift
import Foundation
|
|
|
|
public protocol Locationable {
|
|
|
|
// MARK: Properties
|
|
|
|
var location: String? { get set }
|
|
|
|
}
|
|
|
|
// MARK: - Locationable+Properties
|
|
|
|
public extension Locationable {
|
|
|
|
// MARK: Properties
|
|
|
|
var locationURL: URL? {
|
|
location.flatMap { URL(fileURLWithPath: $0) }
|
|
}
|
|
|
|
}
|