mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-23 00:34:19 +00:00
7 lines
338 B
Fish
7 lines
338 B
Fish
|
#!/usr/bin/env fish
|
||
|
|
||
|
set n \n
|
||
|
set q "`"
|
||
|
|
||
|
jq --raw-output "(.third_party_libraries[]) | {\"dep\": (.package_name), \"license\": (.license), \"text\": (.licenses[] | \"#### \" + (.license) + \"$n$n$q$q$q$n\" + (.text) + \"$n$q$q$q\")} | \"### \" + (.dep) + \" · $q\" + (.license) + \"$q$n$n\" + (.text) + \"$n\"" < NOTICE.json > NOTICE.md
|