-
Notifications
You must be signed in to change notification settings - Fork 1
/
op.conf
36 lines (25 loc) · 729 Bytes
/
op.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## 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
#? This is called automatically when running `op generate`
## Release
version:
sed -i "s/$(rush --version)/$1/g" 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