Skip to content
A small utility that can determine if a command is available from the command line. Written for Pharo.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
repository
LICENSE
README.md

README.md

Command Availability

A small utility that can determine if a command is available from the command line. Written for Pharo.

Install me

Simply execute this code snippet in your image:

Metacello new
    baseline: 'CommandAvailability';
    repository: 'github://juliendelplanque/commandavailability/repository';
    load.

Example

For Linux you can test it like this:

CACheckerUNIX isAvailable: 'echo'. "true"
CACheckerUNIX isAvailable: 'ech'. "false if you didn't defined such a command."
You can’t perform that action at this time.