mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Make "aliases" show up in "arc get-config" help
Summary: Fixes T11758. This was one some spooky magic but is more-or-less a normal config setting now. Test Plan: - Ran `arc get-config`, saw help about "aliases". - Ran `arc set-config aliases`, saw guidance about using `arc alias`. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11758 Differential Revision: https://secure.phabricator.com/D16745
This commit is contained in:
parent
2962504855
commit
fad8584431
1 changed files with 12 additions and 0 deletions
|
@ -169,6 +169,11 @@ final class ArcanistSettings extends Phobject {
|
|||
'default' => false,
|
||||
'example' => 'false',
|
||||
),
|
||||
'aliases' => array(
|
||||
'type' => 'aliases',
|
||||
'help' => pht(
|
||||
'Configured command aliases. Use "arc alias" to define aliases.'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -263,6 +268,12 @@ final class ArcanistSettings extends Phobject {
|
|||
break;
|
||||
case 'wild':
|
||||
break;
|
||||
case 'aliases':
|
||||
throw new Exception(
|
||||
pht(
|
||||
'Use "arc alias" to configure aliases, not "arc set-config".'));
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
@ -296,6 +307,7 @@ final class ArcanistSettings extends Phobject {
|
|||
}
|
||||
break;
|
||||
case 'wild':
|
||||
case 'aliases':
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue