forked from bronto/bronto-api-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole
More file actions
executable file
·23 lines (20 loc) · 722 Bytes
/
Copy pathconsole
File metadata and controls
executable file
·23 lines (20 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env php
<?php
umask(0000);
set_time_limit(0);
if (file_exists($file = __DIR__.'/autoload.php')) {
require_once $file;
} elseif (file_exists($file = __DIR__.'/autoload.php.dist')) {
require_once $file;
}
$application = new Console\Application();
$application->getHelperSet()->set(new Console\Helper\ProgressHelper(), 'progress');
$application->addCommands(array(
new Console\Command\Contacts\UpdateStatusCommand(),
new Console\Command\Contacts\LoadFromCSVCommand(),
new Console\Command\Lists\GetAllCommand(),
new Console\Command\Fields\LoadFromCSVCommand(),
new Console\Command\Fields\DeleteAllCommand(),
new Console\Command\Orders\DeleteAllCommand(),
));
$application->run();