This is how to develop the tool and more on advanced usage.
Clone the repo and run the app like this.
git clone [email protected]:dbwebb-se/dbwebb-cli.git
cd dbwebb-cli
src/dbw.bash help
The code must pass the linter shellcheck.
docker-compose run shellcheck --shell=bash src/*.bash
# or
make shellcheck
Each feature must be covered by unit tests. Execute the test suite like this.
docker-compose run bats test
# or
make bats
Execute all tests.
make test
Make a new release and prepare to tag repo with new version.
make release tag
Install a local copy of the latest version.
# From the latest release locally
make install-app
# Using the install script to install from GitHub source
bash -c "$(cat src/install.bash)"
Where to store the docs?
This section is not verified to work with the latest setup, use it with care or better - ignore.
Local install.
make install-app
Install dbwebb/dbwebb-cli
using composer as part of you development environment.
composer require dbwebb/dbwebb-cli
vendor/bin/dbwebb --version
Install @dbwebb/dbwebb-cli
using npm as part of you development environment.
npm install @dbwebb/dbwebb-cli
node_modules/.bin/dbwebb --version
You can run the tool through docker-compose like this.
docker-compose run dbw
This software carries a MIT license.
.
..: Copyright (c) 2013 - 2024 Mikael Roos, [email protected]