Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (15 sloc) 0.783 kb
04d373b @beberlei Add first version of Maintenance and Replication Commands
beberlei authored
1 <?php
2
3 require_once getcwd() . "/cli-config.php";
48f871f @beberlei Add migrations, move console commands to Doctrine\CouchDB from ODM. A…
beberlei authored
4 xdebug_start_trace("/tmp/couch");
04d373b @beberlei Add first version of Maintenance and Replication Commands
beberlei authored
5 $cli = new \Symfony\Component\Console\Application('Doctrine CouchDB CLI', Doctrine\ODM\CouchDB\Version::VERSION);
6 $cli->setHelperSet($helperSet);
7 $cli->addCommands(array(
48f871f @beberlei Add migrations, move console commands to Doctrine\CouchDB from ODM. A…
beberlei authored
8 new \Doctrine\CouchDB\Tools\Console\Command\ReplicationStartCommand(),
9 new \Doctrine\CouchDB\Tools\Console\Command\ReplicationCancelCommand(),
10 new \Doctrine\CouchDB\Tools\Console\Command\ViewCleanupCommand(),
11 new \Doctrine\CouchDB\Tools\Console\Command\CompactDatabaseCommand(),
12 new \Doctrine\CouchDB\Tools\Console\Command\CompactViewCommand(),
13 new \Doctrine\CouchDB\Tools\Console\Command\MigrationCommand(),
00ffd6a @beberlei Add Update Design Document Command
beberlei authored
14 new \Doctrine\ODM\CouchDB\Tools\Console\Command\UpdateDesignDocCommand(),
04d373b @beberlei Add first version of Maintenance and Replication Commands
beberlei authored
15 ));
16 $cli->run();
Something went wrong with that request. Please try again.