Commit cb28b45a authored by Drew's avatar Drew

Add allKeys, an API to list all keys for a task

parent 6b735cb9
Pipeline #748 passed with stage
......@@ -19,6 +19,8 @@ final public class Task {
public var tool: String = "atllbuild"
public var importedPath: String ///the directory at which the task was imported. This includes a trailing /.
public var allKeys: [String]
private var kvp: [String:ParseValue]
init?(value: ParseValue, name: String, importedPath: String) {
......@@ -26,6 +28,7 @@ final public class Task {
self.importedPath = importedPath.pathWithTrailingSlash
self.kvp = kvp
self.key = name
self.allKeys = [String](kvp.keys)
self.tool = kvp["tool"]?.string ?? self.tool
if let values = kvp["dependencies"]?.vector {
......
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