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