mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-28 21:33:48 +00:00
f688d17cfb
Fixes #223
6 lines
335 B
Plaintext
6 lines
335 B
Plaintext
[
|
|
split("\n")[] # Convert lines to array
|
|
| capture("(?<key>[^\\s]+)\\s+(?<value>.*)"; "x") # capture {"key": [everything before first whitespace], "value": [remainder of line]}
|
|
]
|
|
| from_entries # Convert [{"key": "a", "value": "b"}] to map {"a": "b"}
|