documentation

This commit is contained in:
localstepdo 2020-04-13 15:35:31 -07:00
parent 386eefadff
commit d8a552d487
1 changed files with 6 additions and 0 deletions

View File

@ -182,11 +182,17 @@ On machines that don't even have `has` installed, your project's `.hasrc` is hon
## Adding more tools
The current list of supported packages can be viewed with `bash tests/packages_all.sh`
If the command you wish to include supports any of `-v`, `--version`, `-version`, `version`, `-V` then you can find
corresponding function which can be called to check presence and extract version. However, for many tools version
extraction may not work and you will need to add custom parsing of command's output. The `has` script is commented
to guide developers about what needs to be done to add more tools.
The tests in `/tests/test_all_packages.bats` will automatically test every package has supports. Newly added packages will automatically be tested so be sure to add new packages to
- `alpine.Dockerfile` and `ubuntu.Dockerfile` OR
- `packages_alpine_skip.txt` and `packages_ubuntu_skip.txt`
## Adding Features