12 echo "Usage: $0 VERB [ARGS]" >&2
16 UUIDFILE=/tmp/wm-request-uuid
17 if ! which uuidgen 2>/dev/null 1>&2
19 echo "c7c638c5-d097-4eb4-9012-a1e4c25b9808" > $UUIDFILE
26 UUID="`cat $UUIDFILE`"
28 for i in afb-client-demo
30 which $i 2>/dev/null 1>&2 || { echo "Program $i is missing" >&2; exit 1; }
35 if which python 2>/dev/null 1>&2 && echo '{ "test": "1" }' | python -m json.tool 2>/dev/null 1>&2
37 if [ $nopygments = 0 ] && which pygmentize 2>/dev/null 1>&2
40 python -m json.tool | pygmentize -l json
61 args='{"drawing_name":"'"$1"'"}'
65 afb-client-demo -H ws://localhost:1700/api\?token=wm\&uuid=$UUID winman $verb $args