dev-master
9999999-devThe command line tool.
MIT
The Requires
- corneltek/cliframework >=2.2.0
- php >=5.4.0
The Development Requires
by Your Name
Wallogit.com
2017 © Pedro Peláez
The command line tool.
Simple boilerplate for build your command line tool., (*1)
composer create-project jaceju/clitool-boilerplate myapp -s dev
Change the constants below in src/App/Application.php:, (*2)
const NAME = 'App';
const BIN_NAME = 'app';
const REPOSITORY = 'vendor-name/app-repository';
Rename output phar in box.json:, (*3)
"output": "bin/app.phar",
Finally, change the name, description, authors and scripts in composer.json., (*4)
Here is a example of README.md below for authors of the package. I suppose package name is app in this example., (*5)
You can remove all description above and this line., (*6)
Add ~/.composer/vendor/bin/ to PATH environment variable first. Then can install the package by:, (*7)
composer global require vendor-name/app-repository
And app command should be executable., (*8)
You can build the phar file by:, (*9)
composer build
Update app to latest version:, (*10)
app self-update
You can create an auto-completion of app for zsh by:, (*11)
app zsh --bind app > ~/.zsh/app
Then add the line below to your .zshrc file:, (*12)
source ~/.zsh/app
Same steps as above in bash auto-completion., (*13)
MIT, (*14)
The command line tool.
MIT