[Feature Request] specify a directory --src for `emojme add`
jackellenberger opened this issue · comments
In the meantime, you can do:
# Given directory "directory" of emoji-able images
$ ls directory
...
# Craft a json describing the files
$ ls directory/ | jq -R 'reduce . as $i ({}; {"src": ("directory/" + $i), "name": ($i | sub(".gif"; "") | sub(".jpg"; "") | sub(".jpeg"; ""))})' | jq -s '.' > emoji.json
# Use your new emoji json
$ npx emojme upload -s $SUBDOMAIN -t $TOKEN --verbose --src emoji.json --prefix some_prefix_