-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
## Script Generation | ||
|
||
generate: bashly generate --upgrade && op man | ||
#? regenerate script | ||
|
||
watch: op generate --watch | ||
#? watch files and regenerate script on change | ||
|
||
## Testing | ||
|
||
test: docker compose run test | ||
#? run tests in a container | ||
|
||
## Linting | ||
|
||
shellcheck: shellcheck rush setup && echo "PASS" | ||
#? run shellcheck tests | ||
|
||
shfmt: shfmt -ci -i 2 -d rush setup && echo "PASS" | ||
#? run shfmt tests | ||
|
||
## Documentation | ||
|
||
man: bashly render :mandoc doc | ||
#? Render the man pages | ||
|
||
version: \ | ||
sed -i "s/$(rush --version)/$1/g" README.md src/bashly.yml && \ | ||
bashly g && \ | ||
git commit -am "version bump $1" && \ | ||
## Release | ||
|
||
version: | ||
sed -i "s/$(rush --version)/$1/g" README.md src/bashly.yml | ||
bashly g | ||
git commit -am "version bump $1" | ||
git tag v$1 | ||
#? update version, regenerate and tag | ||
#? usage: op version NEW_VERSION |