Commit d089d258 authored by Drew's avatar Drew

Parse payload key

parent e8203454
Pipeline #2133 passed with stage
in 57 seconds
......@@ -85,6 +85,7 @@ final public class Package {
case Tasks = "tasks"
case Overlays = "overlays"
case UseOverlays = "use-overlays"
case Payload = "payload"
static var allKeys: [Key] {
return [
......@@ -95,7 +96,8 @@ final public class Package {
ExternalPackages,
Tasks,
Overlays,
UseOverlays
UseOverlays,
Payload
]
}
}
......@@ -106,6 +108,9 @@ final public class Package {
// The optional properties. All optional properties must have a default value.
public var version: String? = nil
///The binary payload, if the package is an atbin
public var payload: String? = nil
/**The tasks for the package. For tasks in this package, they are indexed
both by qualified and unqualified name. For tasks in another package, they
appear only by qualified name. */
......@@ -199,6 +204,10 @@ final public class Package {
}
}
if let payload = type.properties[Key.Payload.rawValue]?.string {
self.payload = payload
}
var remotePackages: [Package] = []
//load remote packages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment