feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -1,18 +1,20 @@
#!/usr/bin/env bash
make_ignored() {
if [[ -n $1 ]]; then
if [ -n "$1" ]
then
while read -r lang; do
if [[ $lang != "$1" ]]; then
printf '%s,' "$lang"
if [ "$lang" != "$1" ]
then
printf "%s," "$lang"
fi
done < <(jq -r 'keys[]' lockfile.json)
done < <(jq 'keys|@sh' -c lockfile.json)
fi
}
SKIP_LOCKFILE_UPDATE_FOR_LANGS="$(make_ignored "$1")" \
nvim --headless -c 'luafile ./scripts/write-lockfile.lua' +q
TO_IGNORE=$(make_ignored $1)
SKIP_LOCKFILE_UPDATE_FOR_LANGS="$TO_IGNORE" nvim -l ./scripts/write-lockfile.lua
# Pretty print
cp lockfile.json /tmp/lockfile.json
jq --sort-keys > lockfile.json < /tmp/lockfile.json
cat /tmp/lockfile.json | jq --sort-keys > lockfile.json