Differential D13589 Diff 33531 src/applications/lipsum/management/PhabricatorLipsumGenerateWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/lipsum/management/PhabricatorLipsumGenerateWorkflow.php
Show All 14 Lines | $this | ||||
'wildcard' => true, | 'wildcard' => true, | ||||
), | ), | ||||
)); | )); | ||||
} | } | ||||
public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$supported_types = id(new PhutilSymbolLoader()) | $supported_types = id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('PhabricatorTestDataGenerator') | ->setAncestorClass('PhabricatorTestDataGenerator') | ||||
->loadObjects(); | ->execute(); | ||||
$console->writeOut( | $console->writeOut( | ||||
"%s:\n\t%s\n", | "%s:\n\t%s\n", | ||||
pht('These are the types of data you can generate'), | pht('These are the types of data you can generate'), | ||||
implode("\n\t", array_keys($supported_types))); | implode("\n\t", array_keys($supported_types))); | ||||
$prompt = pht('Are you sure you want to generate lots of test data?'); | $prompt = pht('Are you sure you want to generate lots of test data?'); | ||||
if (!phutil_console_confirm($prompt, true)) { | if (!phutil_console_confirm($prompt, true)) { | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |