You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Validate API_HOST: must be a valid hostname (alphanumeric, dots, hyphens)
if [[ ! "$API_HOST" =~ ^[a-zA-Z0-9]([a-zA-Z0-9.-]*[a-zA-Z0-9])?$ ]]; then
printf '%s' '{"items":[{"title":"Invalid API_HOST","subtitle":"API_HOST must be a valid hostname (e.g. github.com)","valid":false}]}'
exit 0
fi
if ! command -v gh &> /dev/null; then
printf '%s' '{"items":[{"title":"GitHub CLI not found","subtitle":"Press Enter to open installation instructions","arg":"https://github.com/edgarjs/github-repos-alfred-workflow/blob/master/README.md"}]}'
exit 0
fi
if ! command -v jq &> /dev/null; then
printf '%s' '{"items":[{"title":"jq not found","subtitle":"Press Enter to open installation instructions","arg":"https://formulae.brew.sh/formula/jq"}]}'