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'
17 if [[ "$(basename $0)" = "afm-install" ]]; then r=false; fi
18 send install '{"wgt":"'"$f"'","force":true,"reload":'"$r"'}'
23 send uninstall "\"$i\""
40 run-remote|start-remote)
42 send start '{"id":"'"$i"'","mode":"remote"}'
72 usage: $(basename $0) command [arg]
77 runnables list the runnable widgets installed
80 install wgt install the wgt file
83 uninstall id remove the installed widget of id
86 detail id print detail about the installed widget of id
89 runners list the running instance
92 start id start an instance of the widget of id
94 once id run once an instance of the widget of id
97 terminate rid terminate the running instance rid
100 pause rid pause the running instance rid
103 continue rid continue the previously paused rid
106 state rid get status of the running instance rid
112 echo "unknown command $1" >&2