mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
feat: kirčiuoklis script
This commit is contained in:
11
packages/scripts/kirciuoklis.sh
Executable file
11
packages/scripts/kirciuoklis.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
curl -sSL 'https://kalbu.vdu.lt/wp-admin/admin-ajax.php' -F action=text_accents -F body="$(cat)" \
|
||||
| jq -r .message \
|
||||
| if [ "$1" = "--json" ]
|
||||
then jq .textParts
|
||||
else jq -r '
|
||||
.textParts
|
||||
| map(if has("accented") then .accented else .string end)
|
||||
| join("")
|
||||
'
|
||||
fi
|
||||
Reference in New Issue
Block a user