api-helper: Add global list of all available clients

This commit is contained in:
Samantaz Fox 2024-03-30 21:49:56 +01:00
parent 8d4d6244fb
commit 158f55f755
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -5,6 +5,24 @@
# more intuitive than `-n`
#
# Globals
#
ALL_CLIENTS="web
web-embed
web-mobile
android
android-embed
apple-ios
tv-html5
tv-html5-embed"
#
# Utility functions
#
print_usage()
{
(
@ -41,14 +59,10 @@ print_clients()
(
echo ""
echo "Available clients:"
echo " - web"
echo " - web-embed"
echo " - web-mobile"
echo " - android"
echo " - android-embed"
echo " - apple-ios"
echo " - tv-html5"
echo " - tv-html5-embed"
for client in $ALL_CLIENTS; do
echo " - $client"
done
) >&2
}