This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| USAGE_TEXT="Bump and tag the current repository using semantic versioning (https://semver.org/). | |
| Usage: git-bump [options] [major|minor|patch] | |
| Default: patch | |
| Options: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "errors" | |
| "fmt" | |
| log "log/slog" | |
| "maps" | |
| "math/rand/v2" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eo pipefail | |
| # Ref: https://theworld.com/~reinhold/diceware.html | |
| # Ref: https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases | |
| if [[ ! -x "$(command -v curl)" ]]; then | |
| echo "Please install curl" | |
| exit 1 | |
| fi |