From 062584be902b75e13fa1e72bef1fdbf32b1b10bd Mon Sep 17 00:00:00 2001 From: Bertrand Dunogier Date: Thu, 29 Dec 2011 16:38:20 +0100 Subject: [PATCH] Partially implemented #1: runcronjobs support Will now show runcronjobs along with other scripts, and will show its options. No support for part completion yet. --- ezp.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ezp.php b/ezp.php index aaebcd6..0babce2 100755 --- a/ezp.php +++ b/ezp.php @@ -109,6 +109,7 @@ function getScripts() $scriptName = preg_replace( '#(ezp?)?(.*)\.php#', '$2', $script->getFilename() ); $scripts[] = "$scriptName "; } + $scripts[] = 'runcronjobs '; return $scripts; } @@ -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 ) { @@ -168,4 +174,4 @@ function getArguments( $script ) return $result; } -?> \ No newline at end of file +?>