chore: Update README, LICENCE, and add code linting

This commit is contained in:
Alannah Kearney 2021-07-29 14:37:32 +10:00
commit b9a3034788
8 changed files with 145 additions and 7 deletions

View file

@ -1,7 +1,7 @@
# PHP Helpers: Command-line Functions
- Version: v1.1.9
- Date: April 06 2020
- Version: v1.1.10
- Date: July 29 2021
- [Release notes](https://github.com/pointybeard/helpers-functions-cli/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/helpers-functions-cli)
@ -28,6 +28,8 @@ This library is a collection convenience function for command-line tasks. They a
The following functions are provided:
- `run_command()`
- `which()`
- `can_invoke_bash()`
- `is_su()`
- `run_command()`
@ -48,6 +50,9 @@ use pointybeard\Helpers\Cli\Input;
use pointybeard\Helpers\Cli\Colour\Colour;
use pointybeard\Helpers\Functions\Cli;
var_dump(Cli\which("ls"));
// string(11) "/usr/bin/ls"
var_dump(Cli\can_invoke_bash());
// bool(true)