-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathop.conf
More file actions
39 lines (23 loc) · 875 Bytes
/
op.conf
File metadata and controls
39 lines (23 loc) · 875 Bytes
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
## Script Generation
generate: bashly generate --env production && op man
#? Generate the script and manpage
watch: filewatcher --immediate "src/**/*.*" "bashly generate"
#? Watch src/* and regenerate olf on change
## Testing and Linting
test: bats --recursive --print-output-on-failure --abort "${1:-test}"
#? Run all tests or a given test
shellcheck: shellcheck alf setup uninstall test/test_helper.bash && green "PASS"
#? Run shellcheck
shfmt: shfmt -ci -i 2 -d alf setup uninstall && green "PASS"
#? Run shfmt tests
## Development
zsh: docker compose run --rm zsh
#? start ZSH container
man: bashly render :mandoc doc && op man5
#? Render the man pages
## Release
changelog: git changelog --save
#? Generate changelog
private
man5: pandoc -f markdown-smart -s --to man "doc/alf.conf.md" > "doc/alf.conf.5"
#? Generate the man5 (file format) documentation