12 echo "Usage: $0 VERB [ARGS]" >&2
16 for i in uuidgen afb-client-demo
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
44 UUIDFILE=/tmp/wm-request-uuid
49 UUID="`cat $UUIDFILE`"
54 args='{"drawing_name":"'"$1"'"}'
58 afb-client-demo -H ws://localhost:1700/api\?token=wm\&uuid=$UUID winman $verb $args