mooeypoo/mwstew-cli

A command-line tool to create base mediawiki extension files

v0.9.6 2019-01-17 08:05 UTC

This package is auto-updated.

Last update: 2024-04-24 12:44:48 UTC


README

Build Status Coverage Status GitHub license

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:

  1. Clone the repo
  2. Run composer install
  3. 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)