Differential D21457 Diff 51063 src/applications/harbormaster/management/HarbormasterManagementPublishWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/management/HarbormasterManagementPublishWorkflow.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | public function execute(PhutilArgumentParser $args) { | ||||
} | } | ||||
foreach ($result_map as $name => $result) { | foreach ($result_map as $name => $result) { | ||||
if (!($result instanceof HarbormasterBuildable)) { | if (!($result instanceof HarbormasterBuildable)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Object "%s" is not a HarbormasterBuildable (it is a "%s"). '. | 'Object "%s" is not a HarbormasterBuildable (it is a "%s"). '. | ||||
'Name one or more buildables to publish, like "B123".', | 'Name one or more buildables to publish, like "B123".', | ||||
$name, | |||||
get_class($result))); | get_class($result))); | ||||
} | } | ||||
} | } | ||||
foreach ($result_map as $buildable) { | foreach ($result_map as $buildable) { | ||||
echo tsprintf( | echo tsprintf( | ||||
"%s\n", | "%s\n", | ||||
pht( | pht( | ||||
Show All 23 Lines |