Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15439775
D21113.id50284.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D21113.id50284.diff
View Options
diff --git a/src/parser/argument/workflow/PhutilHelpArgumentWorkflow.php b/src/parser/argument/workflow/PhutilHelpArgumentWorkflow.php
--- a/src/parser/argument/workflow/PhutilHelpArgumentWorkflow.php
+++ b/src/parser/argument/workflow/PhutilHelpArgumentWorkflow.php
@@ -40,42 +40,44 @@
$with = $args->getArg('help-with-what');
$runtime = $this->getRuntime();
- $toolset = $runtime->getToolset();
- if ($toolset->getToolsetKey() === 'arc') {
- $workflows = $args->getWorkflows();
+ if ($runtime) {
+ $toolset = $runtime->getToolset();
+ if ($toolset->getToolsetKey() === 'arc') {
+ $workflows = $args->getWorkflows();
- $legacy = array();
+ $legacy = array();
- $legacy[] = new ArcanistCloseRevisionWorkflow();
- $legacy[] = new ArcanistCommitWorkflow();
- $legacy[] = new ArcanistCoverWorkflow();
- $legacy[] = new ArcanistDiffWorkflow();
- $legacy[] = new ArcanistExportWorkflow();
- $legacy[] = new ArcanistGetConfigWorkflow();
- $legacy[] = new ArcanistSetConfigWorkflow();
- $legacy[] = new ArcanistInstallCertificateWorkflow();
- $legacy[] = new ArcanistLandWorkflow();
- $legacy[] = new ArcanistLintersWorkflow();
- $legacy[] = new ArcanistLintWorkflow();
- $legacy[] = new ArcanistListWorkflow();
- $legacy[] = new ArcanistPatchWorkflow();
- $legacy[] = new ArcanistPasteWorkflow();
- $legacy[] = new ArcanistTasksWorkflow();
- $legacy[] = new ArcanistTodoWorkflow();
- $legacy[] = new ArcanistUnitWorkflow();
- $legacy[] = new ArcanistWhichWorkflow();
+ $legacy[] = new ArcanistCloseRevisionWorkflow();
+ $legacy[] = new ArcanistCommitWorkflow();
+ $legacy[] = new ArcanistCoverWorkflow();
+ $legacy[] = new ArcanistDiffWorkflow();
+ $legacy[] = new ArcanistExportWorkflow();
+ $legacy[] = new ArcanistGetConfigWorkflow();
+ $legacy[] = new ArcanistSetConfigWorkflow();
+ $legacy[] = new ArcanistInstallCertificateWorkflow();
+ $legacy[] = new ArcanistLandWorkflow();
+ $legacy[] = new ArcanistLintersWorkflow();
+ $legacy[] = new ArcanistLintWorkflow();
+ $legacy[] = new ArcanistListWorkflow();
+ $legacy[] = new ArcanistPatchWorkflow();
+ $legacy[] = new ArcanistPasteWorkflow();
+ $legacy[] = new ArcanistTasksWorkflow();
+ $legacy[] = new ArcanistTodoWorkflow();
+ $legacy[] = new ArcanistUnitWorkflow();
+ $legacy[] = new ArcanistWhichWorkflow();
- foreach ($legacy as $workflow) {
- // If this workflow has been updated but not removed from the list
- // above yet, just skip it.
- if ($workflow instanceof ArcanistArcWorkflow) {
- continue;
+ foreach ($legacy as $workflow) {
+ // If this workflow has been updated but not removed from the list
+ // above yet, just skip it.
+ if ($workflow instanceof ArcanistArcWorkflow) {
+ continue;
+ }
+
+ $workflows[] = $workflow->newLegacyPhutilWorkflow();
}
- $workflows[] = $workflow->newLegacyPhutilWorkflow();
+ $args->setWorkflows($workflows);
}
-
- $args->setWorkflows($workflows);
}
if (!$with) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 9:23 AM (1 w, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7634125
Default Alt Text
D21113.id50284.diff (3 KB)
Attached To
Mode
D21113: Only inject legacy Arcanist workflows into "help" if run from the context of an Arcanist runtime
Attached
Detach File
Event Timeline
Log In to Comment