├── .gitignore ├── LICENSE ├── README.md ├── bin └── shellwrap ├── composer.json ├── examples ├── example.php ├── grep.php └── ls.php ├── src └── MrRio │ ├── ShellInspector.php │ ├── ShellWrap.php │ └── ShellWrapException.php └── tests ├── fixtures └── fail.sh └── main.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | composer.lock 3 | src/* 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/README.md -------------------------------------------------------------------------------- /bin/shellwrap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/bin/shellwrap -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/composer.json -------------------------------------------------------------------------------- /examples/example.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/examples/example.php -------------------------------------------------------------------------------- /examples/grep.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/examples/grep.php -------------------------------------------------------------------------------- /examples/ls.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/examples/ls.php -------------------------------------------------------------------------------- /src/MrRio/ShellInspector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/src/MrRio/ShellInspector.php -------------------------------------------------------------------------------- /src/MrRio/ShellWrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/src/MrRio/ShellWrap.php -------------------------------------------------------------------------------- /src/MrRio/ShellWrapException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/src/MrRio/ShellWrapException.php -------------------------------------------------------------------------------- /tests/fixtures/fail.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | echo "foo bar" 1>&2 3 | exit $1 4 | -------------------------------------------------------------------------------- /tests/main.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrRio/shellwrap/HEAD/tests/main.php --------------------------------------------------------------------------------