1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ "ls -R":
{ "target_fields": ["tree"]
, "expression":
{ "type": "let*"
, "bindings":
[ [ "tree"
, { "type": "TREE"
, "$1":
{ "type": "map_union"
, "$1":
{ "type": "foreach"
, "var": "dep"
, "range": {"type": "FIELD", "name": "tree"}
, "body":
{"type": "DEP_RUNFILES", "dep": {"type": "var", "name": "dep"}}
}
}
}
]
, [ "inputs"
, { "type": "map_union"
, "$1":
[ { "type": "singleton_map"
, "key": "tree"
, "value": {"type": "var", "name": "tree"}
}
]
}
]
]
, "body":
{ "type": "RESULT"
, "artifacts":
{ "type": "ACTION"
, "outs": ["_out"]
, "inputs": {"type": "var", "name": "inputs"}
, "cmd": ["sh", "-c", "find . -name '*.txt' > _out"]
}
}
}
}
}
|