-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvtiger
36 lines (27 loc) · 1.17 KB
/
vtiger
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env php
<?php
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../autoload.php')) {
require_once __DIR__ . '/../autoload.php';
} else {
require_once __DIR__ . '/../../autoload.php';
}
use Javanile\VtigerCli\App;
use Javanile\VtigerCli\Output;
/** @var App $app */
$app = new App(getcwd());
$app->command('info', [$app, 'info']);
$app->command('apply [Callable]', [$app, 'apply']);
$app->command('addEntityMethod [Module] [Callable]', [$app, 'addEntityMethod']);
$app->command('install', [$app, 'install']);
$app->command('setPassword [Username] [Password]', [$app, 'setPassword']);
$app->command('export [File]', [$app, 'export']);
$app->command('exportDatabase [File]', [$app, 'exportDatabase']);
$app->command('exportStorage [File]', [$app, 'exportStorage']);
$app->command('import [File]', [$app, 'import']);
$app->command('importDatabase [File]', [$app, 'importDatabase']);
$app->command('importStorage [File]', [$app, 'importStorage']);
$app->command('permissions [--fix]', [$app, 'permissions']);
$app->command('console', [$app, 'console']);
$app->run(null, new Output);