First, it is not clear why there is no bat-script for Windows users? Ok... Take it:
@echo off
@setlocal
set TASK=""
if not "%*"=="" set TASK=--task=%*
set KOHANA_PATH=%~dp0
"php" "%KOHANA_PATH%index.php" --uri=minion %TASK%
@endlocal
I have no problems with this bat file, but I think - it need more tests. Ok...
But I have more problems... see Minion_Util class. Somethink about 70 line:
$file = substr($file, strrpos($file, '/') + 1);
If you leave everything as is, in Windows is nonsense. Like this:
> minion
Minion is a cli tool for performing tasks
Usage
php index.php --uri=minion/{task}
Where {task} is one of the following:
* task\addadmin
* task\cache:task\cache\purge
* task\install
* task\media:task\media\purge
* task\migrations:task\migrations\new
* task\migrations:task\migrations\run
* task\migrations:task\migrations\status
* task\uninstall
For more information on what a task does and usage details execute
php index.php --uri=minion/help/{task}
Hi!
First, it is not clear why there is no bat-script for Windows users? Ok... Take it:
I have no problems with this bat file, but I think - it need more tests. Ok...
But I have more problems... see
Minion_Util
class. Somethink about 70 line:If you leave everything as is, in Windows is nonsense. Like this:
Need to change this line to:
Best regards
PS If you used HMVС - make changes would be much easier! Why you don't use HMVC?