Page MenuHomePhabricator

Allow "arc" to accept any prefix of a command as that command
ClosedPublic

Authored by epriestley on Jun 8 2020, 9:53 PM.
Tags
None
Referenced Files
F15420474: D21338.id50771.diff
Fri, Mar 21, 2:16 PM
F15414501: D21338.id50771.diff
Thu, Mar 20, 12:56 AM
F15399493: D21338.id50771.diff
Mon, Mar 17, 4:49 AM
F15391789: D21338.diff
Sat, Mar 15, 11:37 AM
F15385546: D21338.diff
Fri, Mar 14, 10:49 PM
F15380322: D21338.diff
Fri, Mar 14, 2:32 AM
F15354303: D21338.id50771.diff
Tue, Mar 11, 3:15 AM
F15333368: D21338.id50771.diff
Sat, Mar 8, 2:04 AM
Subscribers
None

Details

Summary

Ref T13546. Practically, this allows "arc branch" to run "arc branches".

(This risks overcorrection to some degree, but command correction only occurs if stdout is a TTY so the risk seems limited.)

Test Plan

Ran "arc branch", got "arc branches" as a correction.

Diff Detail

Repository
rARC Arcanist
Branch
land31
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24592
Build 33910: Run Core Tests
Build 33909: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 8 2020, 11:27 PM
This revision was automatically updated to reflect the committed changes.