2
1
mirror of https://github.com/kdabir/has.git synced 2024-11-10 21:26:50 +01:00
Go to file
2017-08-29 09:18:13 +05:30
.editorconfig adding usual suspects for project root 2015-02-12 19:28:24 +05:30
.gitattributes adding usual suspects for project root 2015-02-12 19:28:24 +05:30
.gitignore adding usual suspects for project root 2015-02-12 19:28:24 +05:30
.hastest.bats add test for status code > 1 2017-08-29 09:18:13 +05:30
.travis.yml add basic tests and travis config 2017-08-28 21:37:44 +05:30
has return exit status based on number of failed commands, 0 means all passed 2017-08-29 09:14:08 +05:30
LICENSE update license 2017-08-28 21:11:51 +05:30
README.md add build status 2017-08-28 22:50:44 +05:30

has

has helps you check presence of various command line tools on path.

How ?

Download the has file. There is no dependency apart from bash itself

$ bash has node npm java git gradle 
✔ node 8.2.1
✔ npm 5.3.0
✔ java 1.8.0
✔ git 2.14.1
✔ gradle 4.0.1

Installing

Just download the has script in your path.

If you are lazy, you can has of the internet as well

curl -sL https://raw.githubusercontent.com/kdabir/has/master/has | bash -s git node npm
✔ git 2.14.1
✔ node 8.2.1
✔ npm 5.3.0

And if that's too much of typing everytime, setup an alias

alias has="curl -sL https://raw.githubusercontent.com/kdabir/has/master/has | bash -s"

And uses it

$ has git
✔ git 2.14.1

Build Status