A command line interface for creating base files needed for MediaWiki extensions
GPL-2.0 License
Get the package from packagist:
composer install mooeypoo/mwstew-cli
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
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
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:
composer install
composer run test
to run testsMoriel Schottlender (mooeypoo)