-
Notifications
You must be signed in to change notification settings - Fork 6
/
op.conf
39 lines (30 loc) · 1.14 KB
/
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
37
38
39
generate: bashly generate && op man
test: \
docker compose build bash && \
docker compose run --rm test && \
[[ -z "$TEST" ]] && \
docker compose run --rm test_zsh
#? run test suite inside a docker container
#? if a specific TEST is requested, zsh tests will not be executed
#? usage: op test
#? TEST=info op test
shellcheck: shellcheck alf setup uninstall && echo "PASS"
#? run shellcheck
shfmt: shfmt -ci -i 2 -d alf setup uninstall && echo "PASS"
#? run shfmt tests
changelog: git changelog --save
#? generate changelog
watch: filewatcher --immediate "src/**/*.*" "bashly generate"
#? watch src/* and regenerate olf on change
zsh: docker compose run --rm zsh
#? start ZSH container
man: bashly render :mandoc doc && op man5
#? Render the man pages
man5: pandoc -f markdown-smart -s --to man "doc/alf.conf.md" > "doc/alf.conf.5"
version: \
sed -i "s/$(alf --version)/$1/g" README.md src/bashly.yml test/fixtures/empty-dir/approvals/alf_version test/fixtures/empty-dir/approvals/alf_upgrade && \
op generate && \
git commit -am "version bump $1" && \
git tag v$1
#? update version, regenerate and tag
#? usage: op version NEW_VERSION