[16:11:37] anyone would like to review https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/951963 ? i'd run that script today if so [17:27:29] MatmaRex: hm it makes it run only that line of code. [17:27:49] yes [17:28:15] i don't think you can foreachwiki eval.php, can you? :P [17:29:12] we have foreachwiki and eval.php that could .. [17:29:22] Hmm [17:29:33] I've done something like it before [17:29:58] i looked at eval.php and shell.php and it looked like they can only take the code from stdin, not from a parameter [17:30:19] maybe you could do something silly [17:30:28] like yes ... | foreachwiki eval.php [17:30:44] but i feel like no one would run that for me if i suggested it :D [17:33:37] after testing in beta, I would [17:33:38] https://phabricator.wikimedia.org/P51392 [17:33:47] but that doesn't work indeed, there's no affordance to replay stdin [17:34:05] The script I was thinking of is sql.php, which is also a REPL, and that one does take a --query parameter [17:34:10] also purgeList, getConfig [17:34:16] but yeah not (yet) eval.php [17:35:19] maybe we can do this on wmf branch only, and then add an option to eval.php for next time. [17:47:55] Krinkle: try: `yes 'echo $wgSitename' | foreachwiki eval.php` (`yes` repeats the input forever) [17:48:36] if you want to do the User::newSystemUser() thing that way for me, go right ahead :D [17:49:20] hmm, but i guess all that input will just go to the first wiki? [17:49:36] maybe you'd need to add an 'exit()' there or something [19:36:03] You can create a script in your homedir to do it too [19:36:14] foreachwiki ~/foo.php