12 echo "Usage: $0 VERB [ARGS]" >&2
18 which $i 2>/dev/null 1>&2 || { echo "Program $i is missing" >&2; exit 1; }
23 if which python 2>/dev/null 1>&2 && echo '{ "test": "1" }' | python -m json.tool 2>/dev/null 1>&2
25 if [ $nopygments = 0 ] && which pygmentize 2>/dev/null 1>&2
28 python -m json.tool | pygmentize -l json
55 UUIDFILE=/tmp/wm-request-uuid
60 UUID="`cat $UUIDFILE`"
62 curl -H "x-afb-uuid: $UUID" -s http://localhost:1234/api/winman/${verb}${args} | json_pretty