4 afb-client-demo -H -d unix:/run/afm/apis/ws/afm-main "$1" "$2" |
5 awk '$1=="ON-REPLY-FAIL"{$1="ERROR:";$2="";print;exit 1;}NR>1'
16 send install '{"wgt":"'"$f"'","force":true}'
21 send uninstall "\"$i\""
38 run-remote|start-remote)
40 send start '{"id":"'"$i"'","mode":"remote"}'
70 usage: $(basename $0) command [arg]
75 runnables list the runnable widgets installed
78 install wgt install the wgt file
81 uninstall id remove the installed widget of id
84 detail id print detail about the installed widget of id
87 runners list the running instance
90 start id start an instance of the widget of id
92 once id run once an instance of the widget of id
95 terminate rid terminate the running instance rid
98 pause rid pause the running instance rid
101 continue rid continue the previously paused rid
104 state rid get status of the running instance rid
110 echo "unknown command $1" >&2