kdabir / has

✅ checks presence of various command line tools and their versions on the path
MIT License
681 stars 49 forks source link

More recipes, please! #28

Open mcandre opened 6 years ago

mcandre commented 6 years ago

Awesome tool! I once wrote a similar tool, for quickly gathering disparate and differently syntaxed program information, specs:

https://github.com/mcandre/specs

Feel free to steal more commands for gathering versions into has, I'd love to see has be able to handle Web browser versions, OS versions, and more!

kdabir commented 6 years ago

Hey @mcandre, specs looks nice. By the way, Has was originally built using ruby based build script, later to an API based one, and finally to a single shell script with no dependency.

Regarding Browser, OS and other apps, the original intent of has was check CLI tools present in $PATH. Apps quickly becomes too OS specific.

I will keep this issue open and see and if apps version could be checked in a generic way

virgilwashere commented 5 years ago

OS versions,

I'd very much like to see at least Ubuntu versioning, if not Linux.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

$ lsb_release -sd
Ubuntu 18.04.1 LTS

$ lsb_release -sr
18.04

Not need to stuff around with parsing /etc/*release. V