]> khamidou — GitHub mirrors - arcanist.git/commit
Read arc aliases from all available configuration files
authorepriestley <git@epriestley.com>
Mon, 6 Jun 2016 19:34:02 +0000 (12:34 -0700)
committerepriestley <git@epriestley.com>
Mon, 6 Jun 2016 20:15:59 +0000 (13:15 -0700)
commit7891df6f25840d4e8353690425f86c7b45fc6c79
tree85b7cd633eebe7298fe60e2bc2ae450f29b01446
parent19608cffe6d00e7ff21f96eb84e6ee1cf883d54b
Read arc aliases from all available configuration files

Summary: Fixes T10431. Updates the getAliases() method to read every `arc` configuration file.

Test Plan:
Added an `arc duck` alias to `/etc/arcconfig`, ran `arc duck`, saw "quack".

Added an `arc pig` alias to `~/.arcrc` via `arc alias`, ran `arc pig`, saw "oink oink".

Reviewers: nevogd, chad, #blessed_reviewers

Reviewed By: chad, #blessed_reviewers

Subscribers: eadler, epriestley

Tags: #twitter

Maniphest Tasks: T10431

Differential Revision: https://secure.phabricator.com/D15342
src/configuration/ArcanistConfigurationManager.php
src/workflow/ArcanistAliasWorkflow.php