Creates sourcehut JSON annotations for POSIX shell source trees
Add support for function definitions
Move POSIX definitions to separate file
readme: add building instructions

refs

master
browse log

clone

read-only
https://git.sr.ht/~emersion/annotatesh
read/write
git@git.sr.ht:~emersion/annotatesh

You can also use your local clone with git send-email.

annotatesh

This program scans POSIX shell scripts and emits an annotation graph for git.sr.ht's code annotations feature.

Usage

To annotate a single file:

annotatesh <input.sh >annotations.json

To annotate a whole Git repository:

annotatesh-git >annotations.json

Building

Dependencies:

  • mrsh
  • json-c
meson build
ninja -C build

License

MIT