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