mirror of https://github.com/kdabir/has.git
documentation
This commit is contained in:
parent
386eefadff
commit
d8a552d487
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue