From 158f55f755fc598e3e0bae3a7c9aae49085fa30f Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Sat, 30 Mar 2024 21:49:56 +0100 Subject: [PATCH] api-helper: Add global list of all available clients --- scripts/yt-api-helper.sh | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/scripts/yt-api-helper.sh b/scripts/yt-api-helper.sh index da35490..b88ac8e 100755 --- a/scripts/yt-api-helper.sh +++ b/scripts/yt-api-helper.sh @@ -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 }