added stac-export-licenses

This commit is contained in:
Nicole Dresselhaus 2022-07-18 18:35:51 +02:00
parent d2b12e6c14
commit c2f8989c3e
Signed by: Drezil
GPG Key ID: AC88BB432537313A
2 changed files with 8 additions and 0 deletions

View File

@ -1,2 +1,3 @@
# snippets # snippets
Random assortments of snippets...

7
stack-export-licenses.fish Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/fish
for i in (stack ls dependencies --license --external | cut -d ' ' -f 2 | sort -u);
echo "# Licensed under $i:";
stack ls dependencies --license --external | grep $i | cut -d ' ' -f 1 | sort -u | sed 's/^/- /';
echo "";
echo "";
end > dependency-licenses.md