# Date: 2020-08-30 10:08:07 +0100 (Sun, 30 Aug 2020)
#
# https://github.com/harisekhon/bash-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
set -euo pipefail
[ -n "${DEBUG:-}"]&&set -x
srcdir="$(cd"$(dirname "$0")"&&pwd)"
# shellcheck disable=SC1090
. "$srcdir/lib/utils.sh"
# shellcheck disable=SC2034,SC2154
usage_description="
Run a commandfor each BitBucket repo
All arguments become the command template
The command template replaces the following for convenience in each iteration:
{workspace}=> the workspace the repo is in
{name}=> the repo name without the workspace prefix