A simple plugin for Terminus-CLI to demonstrate how to add new commands.
Adds commands 'hello' and 'auth:hello' to Terminus. Learn more about Terminus Plugins in the Terminus Plugins documentation
These commands require no configuration
terminus hello
terminus auth:hello
To install this plugin using Terminus 3:
terminus self:plugin:install terminus-plugin-example
On older versions of Terminus:
mkdir -p ~/.terminus/plugins
curl https://github.com/pantheon-systems/terminus-plugin-example/archive/2.x.tar.gz -L | tar -C ~/.terminus/plugins -xvz
This example project includes four testing targets:
composer lint
: Syntax-check all php source files.composer cs
: Code-style check.composer unit
: Run unit tests with phpunitcomposer functional
: Run functional test with bats
To run all tests together, use composer test
.
Note that prior to running the tests, you should first run:
composer install
composer install-tools
Run terminus help auth:hello
for help.