Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/ArcanistAliasWorkflow.php
| Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | EOTEXT | ||||
| } | } | ||||
| public static function isShellCommandAlias($command) { | public static function isShellCommandAlias($command) { | ||||
| return preg_match('/^!/', $command); | return preg_match('/^!/', $command); | ||||
| } | } | ||||
| public static function resolveAliases( | public static function resolveAliases( | ||||
| $command, | $command, | ||||
| ArcanistConfiguration $config, | ArcanistRuntime $config, | ||||
| array $argv, | array $argv, | ||||
| ArcanistConfigurationManager $configuration_manager) { | ArcanistConfigurationManager $configuration_manager) { | ||||
| $aliases = self::getAliases($configuration_manager); | $aliases = self::getAliases($configuration_manager); | ||||
| if (!isset($aliases[$command])) { | if (!isset($aliases[$command])) { | ||||
| return array(null, $argv); | return array(null, $argv); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines | |||||