setName('generate') ->setExamples('**generate**') ->setSynopsis('Generate some lipsum.') ->setArguments( array( array( 'name' => 'args', 'wildcard' => true, ), )); } public function execute(PhutilArgumentParser $args) { $admin = PhabricatorUser::getOmnipotentUser(); // $peoplegen = new PhabricatorPeopleTestDataGenerator(); // $object = $peoplegen->generate(); // $handle = PhabricatorObjectHandleData::loadOneHandle($object->getPHID(), // $admin); // echo "Generated ".$handle->getFullName()."\n"; $taskgen = new PhabricatorManiphestTaskTestDataGenerator(); $object = $taskgen->generate(); $handle = PhabricatorObjectHandleData::loadOneHandle($object->getPHID(), $admin); echo "Generated ".$handle->getFullName()."\n"; echo "\nRequested data has been generated."; // $taskgen = new PhabricatorRevisionTestDataGenerator(); // $object = $taskgen->generate(); // $handle = PhabricatorObjectHandleData::loadOneHandle($object->getPHID(), // $admin); // echo "Generated ".$handle->getFullName()."\n"; // echo "\nRequested data has been generated."; } }