Commit Graph

135 Commits

Author SHA1 Message Date
Peter Dave Hello 430d0854f2
Add more "Build and Compile" tools (#77) 2023-10-16 12:04:16 +05:30
Peter Dave Hello 43a6c97bcd
Refine git clone commands in Dockerfiles (#76)
Adjusted git clone commands in Dockerfiles to use `--depth=1`. This
optimizes the cloning process by fetching a limited history, thereby
saving resources and time.
2023-10-16 12:04:01 +05:30
Arkoprabho Chakraborti 61032d63f1
Fixes shellcheck warnings (#75)
* MODIFY: Declare and assign separately to avoid masking return values

For Shellcheck SC2155

* DELETE: Unused variables

* MODIFY: Double quote to prevent globbing and word splitting

Addresses SC2086

* DELETE: Remove unused variable

Addresses SC2034

* MODIFY: Remove use of expr

Addresses SC2003 and SC2004

* Remove spaces around COLOR options

Thanks to @cclaus
https://github.com/kdabir/has/pull/75#discussion_r1301313069

Co-authored-by: Christian Clauss <cclauss@me.com>

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2023-08-28 14:04:58 +05:30
Kunal Dabir a2d7c083c7 call it a v1.5.0 2023-07-28 20:49:10 +05:30
Kunal Dabir abb3decba7 minor refactoring but changes to CLI. add pnpm
- use -v instead of -V for has version
- use '-' in color-<auto|always|never> instead of '_'
2023-07-28 20:02:21 +05:30
Maksym Bilyk 54c334962c
feature_58: Add support for detecting the stdout (#63)
Resolve whether decoration (color) is needed based on flags --color_{auto,never,always} (auto is default).
If --color_auto is passed, text decoration will ocurr only to the stdout.
If --color_{never,always} is passed, will or will not occur in any case.
2023-07-28 19:46:39 +05:30
wzy 8b43040ce2
Support detecting stdout, Fix #58 (#66) 2023-07-28 19:41:40 +05:30
Alex Meyer c12a38bbdd
bugfixes and more tools (#61)
- `cmake`
- `openssh`/`ssh`

- `openssl` now includes letters at the end (eg. "1.1.1j")
- `has` didn't actually detect its own version
2023-07-28 19:05:54 +05:30
Kunal Dabir 49444b3179
Replace status badge 2023-07-28 19:00:34 +05:30
Christian Clauss 81a613a80c
Fix typo (#68)
* Fix typo

* Fix typo
2023-07-28 18:23:47 +05:30
Sylvain METAYER 0f965b7713
feat: add asdf installation instruction (#60) 2023-07-28 18:23:19 +05:30
Christian Clauss b6869f3f8d
Upgrade GitHub Actions (#67) 2023-07-28 18:22:11 +05:30
Christian Clauss fc3505077a
Delete .travis.yml (#69)
* Delete .travis.yml
* Travis to GHA
2023-07-28 18:21:15 +05:30
Talas 7446f451dd
Resolves #17 (#62)
* Update has

Add pip/pip3/firefox/gunzip

* Update has

Add tee/screen/sqlite3
2021-10-09 19:43:39 +05:30
Kunal Dabir 45fd56f557
bump version 2021-10-02 17:58:17 +05:30
Megumin 559e885f22
added support for more tools (#59)
Signed-off-by: meguminloli <meguminloli@protonmail.com>
2021-10-02 17:55:43 +05:30
Saager Mhatre 3ce21c9b2c
Update `uninstall` target in Makefile to respect env vars (#56)
`uninstall` now `rm`s from `${DESTDIR}${PREFIX}/bin` instead of
defaulting to `/usr/local/bin`
2021-10-02 17:55:25 +05:30
ptt-homme 868bc1aff6
add command options for help and version (#53)
* add command options for help and version

* fix tests
2021-04-25 14:16:16 +05:30
ptt-homme 1f28a53597
Add gpg package (#52)
* add GnuPG tools

* clean unneeded space in REGEX for gulp
2020-08-31 09:20:54 +05:30
ptt-homme 41149c3474
support composer (#51) 2020-08-31 09:20:38 +05:30
John-Michael Faircloth 45c4126659
fix TERM env assignment (#50)
incorrect assignment will result in error:

```has: line 14: =xterm: command not found```
2020-08-13 10:31:12 +05:30
Abhishek Anand Amralkar 99595431ff
* add hashicorp tools (#49)
- terraform
- packer
- consul
- nomad
- vagrant
2020-07-17 01:01:20 +05:30
Stephen Dolenc e8bdf2278c
fixing tests on ubuntu (#48)
* fixing tests: eb vesion and node packages

* downgrade netlify due to recent dependency errors

Co-authored-by: stepdo <local@stepdo@com>
2020-06-23 00:26:01 +05:30
Kunal Dabir 90d1817ab9
[WIP] change references (#46)
* change references

* Fix containers (#47)

* spelling

* remove extra xz install

* more references

* more stable strategy for installing node, npm

* more flexible version pinning for alpine

* syntax


Co-authored-by: Stephen Dolenc <sdolenc@users.noreply.github.com>
2020-06-21 10:30:55 +05:30
johan-ejstrud 3dd103126e
Add quite mode (#45)
Close #39

Contributed by: Johan Ejstrud <johan@ejstrud.com>
2020-06-20 20:16:48 +05:30
Stephen Dolenc 4ccd0177d4
Verify version for each command (#43)
Thanks to contributions by @sdolenc 

* docker files
* list tools for testing
* test packages
* github actions
* documentation
* ensure expected command count
* output count of individual tools tested
* test: eb rg podman subl brunch grunt gulp heroku netlify sls java brew gor, heroku, mvn, netlify, netlifyctl, php5,  gcloud, hub, coreutils, brunch, code, kotlin, sbt, go, ant, gem, rake, autojump, groovy, aws, perl6, sbt, scala, lein
2020-04-25 16:48:24 +05:30
Jordi Sola 31828ec6bf
Add podman to the list container runtimes (#42) 2020-03-18 11:49:15 +05:30
Cody Hiar 28484822d6 Fix bug when `gor` not installed (#41) 2019-10-08 09:00:12 +05:30
Kunal Dabir bdf7c2ffe6 add doc for contributing more tools 2019-07-24 17:56:04 +05:30
Ashish Mohite 197dce1d03 Support psql (#40)
support for pg client
2019-07-24 17:49:48 +05:30
Kunal Dabir b82d650df0 support docker 2019-07-24 17:29:01 +05:30
Kunal Dabir e9b78acff2 add more tools. wip:organize the tools in groups 2019-07-24 12:34:13 +05:30
Kunal Dabir a788fdf6b8
minor updates 2019-07-13 14:21:20 +05:30
Kunal Dabir 754a4e444c
update usage in scripts 2019-07-13 14:11:04 +05:30
Kunal Dabir e8028b18ad
add instructions for installation via brew for #30 2019-06-28 11:54:43 +05:30
Virgil c25ce0eea4 add coreutils and archiving utilities to known commands (#34)
*  🎨 follow Bats coding style for tests

- [x] renamed working directory variable to `HAS_TMPDIR`
- [x] explicitly calling has binary
- [x] Only using `[[ ]]` for regex matches

*  add coreutils and archiving utilities to known commands

- [x] command mapping `*coreutils` to `gnu_coreutils`
- [x]  add test for gnu_coreutils
- [x] 💚 add archiving packages to travis
- [x]  add test for archiving commands

*  add utilities `hub` and `zip`

- [x] add custom processing for `hub` and `zip`
- [x]  add tests for `hub` and `zip`

* adding restyled.io 🔧 config

*  add dynamic `-V` check

- [x] 👌 update 'ab' to use dynamic `-V`
- [x] 👌 update 'go' to use dynamic `arg version`
- [x] 🚨 general whitespace and whitespace in command subsitution
- [x] [SC2004] 🚨 `$`/`${}` is unnecessary on arithmetic variables.
- [x]  make `hub` test conditional on command found
2019-05-21 09:54:40 +05:30
Virgil 1f7dd61324 use apt addon in CI config (#33) 2019-05-20 23:18:08 +05:30
Virgil f5981b9145 Linting with shellcheck (#32)
* [SC2196] Use grep -Eegrep is non-standard and deprecated.

* [SC2086] Double quoting

Double quote to prevent globbing and word splitting.

* [SC2059] printf syntax

Don't use variables in the printf format string.
Use printf "..%s.." "$foo".

Update matching test to not assume whitespace is <space>

* [SC2002] Useless cat.

Consider 'cmd < file | ..' or 'cmd file | ..' instead.

* Update Unicode PASS/FAIL output

- [x] NEW variables for 'checkmark' and 'fancy x' and tput colours
  - [x] eg: `checkmark` = `\342\234\223`
  - [x] eg: `PASS=${txtbold}${txtgreen}${checkmark}${txtreset}`
  - [x] update `printf` statements to use `%b` for unicode variables.
- [x] Using readonly variables for
  - [x] $BINARY_NAME and $VERSION
  - [x] $PASS and $FAIL
- [x] refactor `.hasrc` file reading
  - [x] [SC2002] Useless cat
- [x] Add new BATS tests for Unicode output

* Repo scaffolding - shellscript filetype

- [x] Add shellscripts to `.editorconfig`
- [x] Add shellscripts to `.gitattributes`

* Refactored tests to use consistent unicode glyphs.
2019-04-23 12:08:38 +05:30
Kunal Dabir 53ab06dd03 Sadly, longopts like --verbose are not working on MacOS for cp, mkdir and rm. also -u was not supported for cp. alternative is rsync
https://superuser.com/questions/515373/cp-u-is-illegal-on-mac-what-are-the-alternatives
2019-04-04 16:14:00 +05:30
Virgil 36e11e238f Freshen Makefile and update README.md (#31)
Details:

* Freshen Makefile and update README.md

- [x] Add `sudo` to revelvant commands
- [x] Use named languages (bash) in fenced codeblocks
- [x] Use `console` in fenced codeblocks for command output

- [x] Use `install` with permission mode

The permissions on `has` were 777 from `git clone`.

- [x] Add option to use $PREFIX

What if I don't want to install to /usr/local/bin?

`make PREFIX=$HOME/.local install` now works.

- [x] Add `update` target for `git pull`
- [x] Include .PHONY targets

* Freshen Makefile and update README.md

- [x] Add `sudo` to revelvant commands
- [x] Use named languages (bash) in fenced codeblocks
- [x] Use `console` in fenced codeblocks for command output

- [x] Use `install` with permissions set

The permissions on `has` were 777 from `git clone`.

- [x] Add option to use $PREFIX

What if I don't want to install to /usr/local/bin?

`make PREFIX=$HOME/.local install` now works.

- [x] Add `update` target for `git pull`
- [x] Include .PHONY targets

- [x] Add tests for Makefile changes
- [x] Uses `bats` variables for directories

- ✓ make install creates a valid installation
- ✓ ..even if has is missing from directory
- ✓ make update runs git pull

* Update .hastest.bats

temp remove "git pull" check.

* Update travis to use bats-core 1.10

Do not be concerned about dirty working tree when running make update.

* Change version output to non-blinking.

* Update travis to use bats-core 1.10

Do not be concerned about dirty working tree when running make update.

* Working makefile

* Use `[[` and `@` for the $lines match.

* `make install` MacOS friendly again
2019-04-04 16:09:17 +05:30
Kunal Dabir 3b26771c8a
Update README.md 2018-12-03 09:17:49 +05:30
Kunal Dabir 33b0623497
Update README.md 2018-11-27 08:30:33 +05:30
Kunal Dabir 29e5c412d2 release v1.4.0 2018-11-18 17:37:01 +05:30
Kunal Dabir 10c906e7f8 fix regression created with #15. self verion had stopped working. now added a test for it 2018-11-17 11:05:14 +05:30
Kunal Dabir ef55e62fd0
detailed installation instructions 2018-11-17 10:51:49 +05:30
Kunal Dabir b1f41e786c
cleanup 2018-11-16 18:43:35 +05:30
Kunal Dabir 7dc6946d36
link this repo's .hasrc 2018-11-16 18:41:00 +05:30
Kunal Dabir d07a65596d #15 docs on project specific .hasrc 2018-11-16 17:19:46 +05:30
Kunal Dabir 33cbc13738 #15 update documentation for .hasrc file 2018-11-16 16:50:36 +05:30
Kunal Dabir 44a71cf023 #15 test for excluding comments (lines starting with a #) 2018-11-16 16:23:34 +05:30