Skip to content

Commit

Permalink
Partially implemented #1: runcronjobs support
Browse files Browse the repository at this point in the history
Will now show runcronjobs along with other scripts,
and will show its options.
No support for part completion yet.
  • Loading branch information
Bertrand Dunogier committed Dec 29, 2011
1 parent a665327 commit 062584b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ezp.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function getScripts()
$scriptName = preg_replace( '#(ezp?)?(.*)\.php#', '$2', $script->getFilename() );
$scripts[] = "$scriptName ";
}
$scripts[] = 'runcronjobs ';
return $scripts;
}

Expand All @@ -118,6 +119,11 @@ function getScripts()
*/
function getScript( $script )
{
if ( $script == 'runcronjobs' )
{
return './runcronjobs.php';
}

$candidatePaths = array( 'bin/php/ez', 'bin/php/ezp', 'bin/php/' );
foreach( $candidatePaths as $candidatePath )
{
Expand Down Expand Up @@ -168,4 +174,4 @@ function getArguments( $script )

return $result;
}
?>
?>

0 comments on commit 062584b

Please sign in to comment.