if ($flags['--cron-delete-multi']) { $ingester->cronDeleteMulti(); exit; } if ($flags['--cron-delete']) { if (!isset($index) || $index == null) { die("You must specify the index to delete"); } if (!isset($path) || $path == null) { die("You must specify the path to search in"); } $ingester->cronDelete($index, $path); exit; } //we need all collections at this point (regardless of the exit for --list-all) $allCollections = $ingester->getCollections(); if ($flags['--list-all']) { foreach ($allCollections as $nick => &$params) { echo "{$nick}\n"; } exit; } if ($flags['--list-missing']) { echo "Collections not yet ingested:\n"; foreach ($allCollections as $nick => &$params) { if (!DRIADAgent::remoteIndexExists($nick)) { echo "{$nick}\n"; } } echo "done!\n"; exit;