1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 08:58:55 +02:00
phorge-arcanist/scripts
epriestley 59e13f666f Correct spelling for "arc" commands
Summary:
I type "arc brnach" about 300 times per day.

  - Allow arc commands to be specified by unique prefix ("exp" for "export", "lib" for "liberate").
  - Allow arc commands to be specified by unique levenshtein edit distance <= 2 ("brnach" for "branch", "halp" for "help", "ptach" for "patch").
  - Reorganize code out of "arcanist.php".

I think this will be uncontentious because arc commands are rarely destructive, but if people complain we can either require certain commands be typed exactly (maybe "land"?) or allow this feature to be disabled in configuration.

Test Plan:
  $ arc br
  Usage Exception: Unknown command 'br'. Try 'arc help'.

  Did you mean:
      branch
      browse

  $ arc brnachh
  Usage Exception: Unknown command 'brnachh'. Try 'arc help'.
  $ arc brnach
  (Assuming 'brnach' is the British spelling of 'branch'.)
     doc-security        No Revision      security
     sms                 Needs Revision   D319: Add SMS support to Phabricator
     phxtag              No Revision      derp
     arantag             No Revision      derp
  ...

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D4305
2012-12-30 16:01:59 -08:00
..
hgdaemon Delete license headers from files 2012-11-05 11:16:24 -08:00
lib Delete license headers from files 2012-11-05 11:16:24 -08:00
repository Use binary safe diff in arc diff 2012-07-03 13:33:28 -07:00
__init_script__.php Allow arc to be run in arcanist/ or libphutil/ 2012-12-17 16:35:03 -08:00
arcanist.php Correct spelling for "arc" commands 2012-12-30 16:01:59 -08:00
breakout.py Use /usr/bin/env python 2012-09-06 19:13:57 -07:00
php_extension_classes.txt Include extension classes in the builtin list 2012-07-26 14:46:53 -07:00
php_extension_functions.txt Improve management of zlib dependency 2012-08-20 17:26:42 -07:00
phutil_rebuild_map.php Delete license headers from files 2012-11-05 11:16:24 -08:00
phutil_symbols.php Delete license headers from files 2012-11-05 11:16:24 -08:00
update_compat_info.php Delete license headers from files 2012-11-05 11:16:24 -08:00