lix/doc/manual/generate-builtins.jq
2020-08-24 14:49:30 +02:00

7 lines
224 B
Plaintext

. | to_entries | sort_by(.key) | map(
" - `builtins." + .key + "` "
+ (.value.args | map("*" + . + "*") | join(" "))
+ " \n\n"
+ (.value.doc | split("\n") | map(" " + . + "\n") | join("")) + "\n\n"
) | join("")