8require_once __DIR__ .
'/Maintenance.php';
13 parent::__construct();
16 'Path or glob pattern to extension.json/skin.json file.',
26 $paths = glob( $this->
getArg( 0 ) );
27 foreach ( $paths as
$path ) {
29 $validator->validate(
$path );
30 $this->
output(
"$path validates against the schema!\n" );
40require_once RUN_MAINTENANCE_IF_MAIN;
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
addArg( $arg, $description, $required=true, $multi=false)
Add some args that are needed.
getArg( $argId=0, $default=null)
Get an argument.
output( $out, $channel=null)
Throw some output to the user.
fatalError( $msg, $exitCode=1)
Output a message and terminate the current script.
__construct()
Default constructor.
execute()
Do the actual work.