Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/ArcanistShellCompleteWorkflow.php
- This file was moved from src/workflow/ArcanistShellCompleteWorkflow.php.
| <?php | <?php | ||||
| /** | /** | ||||
| * Powers shell-completion scripts. | * Powers shell-completion scripts. | ||||
| */ | */ | ||||
| final class ArcanistShellCompleteWorkflow extends ArcanistWorkflow { | final class ArcanistShellCompleteWorkflow extends ArcanistWorkflow { | ||||
| public function supportsToolset(ArcanistToolset $toolset) { | |||||
| return true; | |||||
| } | |||||
| public function getWorkflowName() { | public function getWorkflowName() { | ||||
| return 'shell-complete'; | return 'shell-complete'; | ||||
| } | } | ||||
| public function getCommandSynopses() { | public function getWorkflowSynopses() { | ||||
| return phutil_console_format(<<<EOTEXT | return array( | ||||
| **shell-complete** __--current__ __N__ -- [__argv__] | pht('**shell-complete** __--current__ __N__ -- [__argv__]'), | ||||
| EOTEXT | |||||
| ); | ); | ||||
| } | } | ||||
| public function getCommandHelp() { | public function getWorkflowHelp() { | ||||
| return phutil_console_format(<<<EOTEXT | return pht(<<<EOTEXT | ||||
| Supports: bash, etc. | Implements shell completion. To use shell completion, source the appropriate | ||||
| Implements shell completion. To use shell completion, source the | script from 'resources/shell/' in your .shellrc. | ||||
| appropriate script from 'resources/shell/' in your .shellrc. | |||||
| EOTEXT | EOTEXT | ||||
| ); | ); | ||||
| } | } | ||||
| public function getArguments() { | public function getArguments() { | ||||
| return array( | return array( | ||||
| 'current' => array( | 'current' => array( | ||||
| 'param' => 'cursor_position', | 'param' => 'cursor_position', | ||||
| ▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines | |||||