Bash Project Scaffolding
Install shellcheck.
$ sudo apt install shellcheckRun linter.
$ bash run lintInstall shfmt.
$ go get -u mvdan.cc/sh/cmd/shfmtRun command.
$ bash run formatInstall bats.
$ git clone https://github.com/bats-core/bats-core.git && sudo bats-core/install.sh /usr/localInstall syntax highlight.
Run test suit.
$ bash run testOptionally install test helpers. They are imported automatically with load 'helpers/load'.
$ bash run installList of currently configured test helpers:
Tasks are defined in run file. Every function defined is a command. For example:
function check() {
lint && test
}Can be runned with:
$ bash run check