File tree Expand file tree Collapse file tree 7 files changed +23
-258
lines changed Expand file tree Collapse file tree 7 files changed +23
-258
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ pre-commit :
2+ commands :
3+ test :
4+ run : ' ./bake test'
5+ lint :
6+ run : ' ./bake lint'
Original file line number Diff line number Diff line change 1+ disable =SC2034
Original file line number Diff line number Diff line change 11# shellcheck shell=bash
22
3- task.docs () {
4- shdoc < ' ./pkg/src/public/bash-term.sh ' > ' ./docs/bash-term.md '
3+ task.test () {
4+ bats tests
55}
66
7- task.lint () {
7+ task.format () {
88 shfmt -w -ln bash -sr ./pkg ./Bakefile.sh
99}
10+
11+ task.lint () {
12+ shellcheck ./pkg/** /* .sh
13+ }
14+
15+ task.docs () {
16+ shdoc < ' ./pkg/src/public/bash-term.sh' > ' ./docs/bash-term.md'
17+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ version = '0.6.3'
88authors = [' Edwin Kofler <edwin@kofler.dev>' ]
99
1010[run ]
11- dependencies = [' https://github.com/hyperupcall/bash-core@v0.11.0' ]
11+ dependencies = [
12+ ' https://github.com/hyperupcall/bash-core@v0.11.0' ,
13+ ' https://github.com/hyperupcall/bats-all.git@v4.1.0' ,
14+ ]
1215binDirs = []
1316sourceDirs = [' pkg/src/public' , ' pkg/src/util' ]
1417builtinDirs = []
Original file line number Diff line number Diff line change 33load ' ./util/init.sh'
44
55@test " Outputs 'woofers!'" {
6- run bash-tty
6+ run echo ' woofers! '
77
88 [ " $status " -eq 0 ]
99 [ " $output " = " woofers!" ]
You can’t perform that action at this time.
0 commit comments