function drush_mongodb_cli in MongoDB 7
Same name and namespace in other branches
- 6 mongodb.drush.inc \drush_mongodb_cli()
Drush callback; Start the mongodb shell.
File
- ./
mongodb.drush.inc, line 100 - Provide drush integration for MongoDB.
Code
function drush_mongodb_cli($alias = 'default') {
$command = _drush_mongodb_connect($alias);
drush_print(proc_close(proc_open(escapeshellcmd($command), array(
0 => STDIN,
1 => STDOUT,
2 => STDERR,
), $pipes)));
}