Page MenuHomePhabricator

[mwcli mwdd] Provide a command that can get more than just core & Vector
Closed, ResolvedPublic

Description

Various setups, such as the standard WMDE use case, end up needing more extensions.
It would be nice to provide a way to fetch all of this in a single command.

mwdd getcode --core --extensions Wikibase,WikibaseLexeme --skins Vector

This is the sort of command that @kostajh expressed could be good to have a level up in the mwcli rather than as part of mwdd too.
But creating this in mwdd and moving it up later probably makes sense!

I guess the plan would then be to have some commands other than docker at some point? :)

Right, I think for example the medium/heavyweight local environment (local-charts) may move into this project (e.g. mw local-charts ...) and I could also see adding e.g. a download utility for mw get SomeExtension or extension management mw enable/disable SomeExtension.

I would keep the service part of the subcommand, but for starting up the entire local stack (which may have multiple services) we could probably keep the existing mw docker start and mw docker stop commands, and those can be adjusted internally to call the relevant mw docker service {serviceName} start/stop commands.

Event Timeline

Addshore moved this task from Pending Release to Done on the mwcli board.

v0.20.0 is currently releasing

I'm thinking about making a maintenance script (or composer library) that would provide this functionality, so that users of any dev environment (MediaWiki-Docker, Vagrant, mwcli, macOS/homebrew) would benefit from it.

I'm thinking about making a maintenance script (or composer library) that would provide this functionality, so that users of any dev environment (MediaWiki-Docker, Vagrant, mwcli, macOS/homebrew) would benefit from it.

Sounds great.
I can also re work the mwcli command so that it works in all contexts, not just within the mwcli provided dev environment.

Right now the command exists at mw docker mediawiki get-code
However it is dev environment agnostic, only needing a mediawiki path to all work.
So it could also live at mw mediawiki get-code for example?