summaryrefslogtreecommitdiffstats
path: root/bin/4a-api
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2018-08-01 12:07:54 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2019-04-24 14:18:11 +0200
commitc3d43245f69639183766b10a530963129fa8d867 (patch)
tree79a01bdd5fe7e1794f7f6a04743865d447054d65 /bin/4a-api
parent15812b9f7092fe55e9558bd7c4eb22510e587423 (diff)
4a-api: add subcommands for mediaplayer and mediascanner
Change-Id: Ib4933d68efe23c9f1dce0b190db713bc2001d057 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'bin/4a-api')
-rwxr-xr-xbin/4a-api8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/4a-api b/bin/4a-api
index 1e1bb39..694397f 100755
--- a/bin/4a-api
+++ b/bin/4a-api
@@ -13,7 +13,10 @@ function usage() {
log " api <verb> [args]: send direct request to API verb with args"
log " roles: get AHL roles"
log " hals [-a|--all] [-v|--verbose]: get HALs status"
+ log " mediascanner ... : interact with mediascanner service"
+ log " example: 4a-api mediascanner media_result \"\""
log " mediaplayer ... : interact with mediaplayer service"
+ log " example: 4a-api mediaplayer playlist \"\""
log " radio ... : interact with radio service"
exit 1
}
@@ -38,8 +41,11 @@ case $cmd in
done
4a-client 4a-hal-manager loaded "{'verbose':$verbose,'all':$all}"
;;
+ mediascanner)
+ mediascanner-client "$@"
+ ;;
mediaplayer)
- echo "TODO"
+ mediaplayer-client "$@"
;;
radio)
echo "TODO"