mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-26 13:30:30 +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"}
|