mooeypoo / mwstew-cli
A command-line tool to create base mediawiki extension files
Requires
- mooeypoo/mwstew-builder: ^1.1
- symfony/console: ^4.2
Requires (Dev)
- mediawiki/minus-x: ^0.3
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.5
- symfony/framework-bundle: ^4.2
README
MWStew-CLI: A command line tool to create mediawiki extension files
Usage
Get the package from packagist:
composer install mooeypoo/mwstew-cli
Command: create-extension
To create extension files, run the create-extension
command:
./vendor/bin/mwstew create-extension extensionName
By default, files will be created in the path ./extensions/
. You can provide a different path by using the --path [new path]
command.
To see the available parameters for create-extension command, use ./vendor/bin/mwstew create-extension -h
Command: list-hooks
To see a list of all available recognized hooks from the MediaWiki API, use the list-hooks
command:
./vendor/bin/mwstew create-extension list-hooks
You can also search the list of hooks:
./vendor/bin/mwstew create-extension list-hooks --search="api"
To see the available parameters for create-extension command, use ./vendor/bin/mwstew list-hooks -h
Contribute
This is fully open source tool. Pull requests are welcome! Please participate and help make this a great tool!
If you have suggestions or bug reports, please submit an issue.
If you want to contribute to the code, clone and initialize locally:
- Clone the repo
- Run
composer install
- Run
composer run test
to run tests
- See MWStew for the graphical interface.
- See MWStew-CLI for the extension-creation engine behind this tool.
Authors
Moriel Schottlender (mooeypoo)