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
F15447331: D21338.id50797.diff
Thu, Mar 27, 11:11 PM
F15446857: D21338.id50771.diff
Thu, Mar 27, 8:31 PM
F15442102: D21338.id50771.diff
Wed, Mar 26, 9:31 PM
F15438486: D21338.id.diff
Wed, Mar 26, 12:59 AM
F15432681: D21338.diff
Mon, Mar 24, 7:18 PM
F15427193: D21338.id50771.diff
Sun, Mar 23, 1:16 PM
F15420474: D21338.id50771.diff
Fri, Mar 21, 2:16 PM
F15414501: D21338.id50771.diff
Thu, Mar 20, 12:56 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.