Class to provide functions to support external command execution.
This class helps with:
Located in /lib/CommandLine.php (line 51)
Construct a new instance of the CommandLine class.
Build a entire command line which can be run as a PHP system command.
This method builds a command line from an array of arguments using the following conventions:
For example:
Locate a executable program.
Searches the default path (/bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, and /usr/local/sbin). You may include an array of additional directories to search (if included we will search there first).
Get full path to a found program.
This method returns the full path to program which was previously located via one of the 'find' or 'require' invocations. For example:
Looks for a set of required executables - exception if ANY are missing.
This function uses the findProgram method to verify that an entire collection of required exectuables are present on the system. If any of the required programs are found to be missing, this function will throw an exception. Example:
Add a registered program into the collection.
This method adds (or replaces) a program into the collection. For example:
Documentation generated on Sun, 11 Feb 2018 07:41:02 -0500 by phpDocumentor 1.4.4