mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Implement PathContaining on relevant models
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import Foundation
|
||||
import JSONUtilities
|
||||
import struct PathKit.Path
|
||||
|
||||
public struct BuildScript: Equatable {
|
||||
|
||||
@@ -53,3 +54,10 @@ extension BuildScript: JSONObjectConvertible {
|
||||
showEnvVars = jsonDictionary.json(atKeyPath: "showEnvVars") ?? true
|
||||
}
|
||||
}
|
||||
|
||||
extension BuildScript: PathContaining {
|
||||
|
||||
static func expandPaths(for source: JSONDictionary, relativeTo path: Path) -> JSONDictionary {
|
||||
return expandStringPaths(from: source, forKey: "path", relativeTo: path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user