Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions scripts/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,25 @@ set -e

DRY_RUN=1

helps() {
cat <<- EOF
Usage: $0 TAGVERSION [-t]

Creates git tags for public Go packages.

ARGUMENTS:
TAGVERSION Tag version to create, for example v1.0.0

OPTIONS:
-t Execute git commands (default: dry run)
EOF
exit 0
}


if [ $# -eq 0 ]; then
echo "Error: Tag version is required"
help
helps
fi

TAG=$1
Expand All @@ -24,20 +40,6 @@ while getopts "t" opt; do
esac
done

help() {
cat <<- EOF
Usage: $0 TAGVERSION [-t]

Creates git tags for public Go packages.

ARGUMENTS:
TAGVERSION Tag version to create, for example v1.0.0

OPTIONS:
-t Execute git commands (default: dry run)
EOF
exit 0
}

if [ "$DRY_RUN" -eq 1 ]; then
echo "Running in dry-run mode"
Expand Down
Loading