Commit 25c6c0f0 authored by Addshore's avatar Addshore 🏄
Browse files

mw dev mediawiki install: Improve long help command

parent da8fb234
......@@ -197,7 +197,21 @@ var DbName string
var mwddMediawikiInstallCmd = &cobra.Command{
Use: "install",
Short: "Installs a new MediaWiki site using install.php",
Example: ` install --dbtype=mysql # Install a MediaWiki site in a databse called 'default' backed by MySQL
install --dbname=enwiki --dbtype=mysql # Install a MediaWiki site in a databse called 'enwiki' backed by MySQL
install --dbname=thirdwiki --dbtype=postgres # Install a MediaWiki site in a databse called 'thirdwiki' backed by Postgres`,
Short: "Installs a new MediaWiki site using install.php & update.php",
Long: `Installs a new MediaWiki site using install.php & update.php
The process hidden within this command is:
- Ensure we know where MediaWiki is
- Ensure a LocalSettings.php file exists with the shim needed by this development environemnt
- Ensure composer dependencies are up to date, or run composer install
- Move LocalSettings.php to a temporary location, as MediaWiki can't install with it present
- Wait for any needed databases to be ready
- Run install.php
- Move LocalSettings.php back
- Run update.php`,
Aliases: []string{"i"},
Run: func(cmd *cobra.Command, args []string) {
// Make it harder for people to fall over https://phabricator.wikimedia.org/T287654 for now
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment