As a PC owner, I want an easy way to script things.
As a script writer I want an easy way to find if a program is available on my system.
There are many public domain code, so I just need to find one that is easy to remember.
Ideally, I want to use Python or other language out of the box:
if not program.exists('pass'):
program.propose('pass') # uses DB or map of package-to-program for different OSes
if not program.exists('pass'):
sys.exit('no `pass` program found, can't continue')
I need to review difference implementation of program.exists() function and get the best. Public domain is the best, but also preserve authorship based on blames and public info.
easy to remember
.Ideally, I want to use Python or other language out of the box:
I need to review difference implementation of
program.exists()
function and get the best. Public domain is the best, but also preserve authorship based on blames and public info.