Differential D15439 Diff 37213 src/applications/nuance/management/NuanceManagementImportWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/management/NuanceManagementImportWorkflow.php
Show All 34 Lines | public function execute(PhutilArgumentParser $args) { | ||||
$cursors = $definition->getImportCursors(); | $cursors = $definition->getImportCursors(); | ||||
if (!$cursors) { | if (!$cursors) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'This source ("%s") does not have any import cursors.', | 'This source ("%s") does not have any import cursors.', | ||||
$source->getName())); | $source->getName())); | ||||
} | } | ||||
echo tsprintf( | foreach ($cursors as $cursor) { | ||||
"%s\n", | $cursor->importFromSource(); | ||||
pht('OK, but actual importing is not implemented yet.')); | } | ||||
return 0; | return 0; | ||||
} | } | ||||
} | } |