Files
EasySoft-ZenTaoPMS/test/ztest
2022-03-14 09:22:53 +08:00

45 lines
845 B
PHP
Executable File

#!/usr/bin/env php
<?php
include 'lib/utils.php';
if(count($argv) <= 1) die(printUsage());
switch($argv[1])
{
case 'init':
zdRun();
break;
case 'extract':
ztfExtract('api');
ztfExtract('model');
break;
case 'api':
ztfRun('api');
break;
case 'control':
ztfRun('control');
break;
case 'program':
ztfRun('model/program');
break;
case 'product':
ztfRun('model/product');
break;
case 'project':
ztfRun('model/project');
break;
case 'task':
ztfRun('model/task');
break;
case 'execution':
ztfRun('model/execution');
break;
case 'model':
ztfRun('model');
break;
default:
ztfExtract($argv[1]);
system("php " . $argv[1]);
}