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

6 lines
224 B
Text

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