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
Unknown Object (File)
Fri, Dec 20, 7:37 PM
Unknown Object (File)
Tue, Dec 17, 9:58 PM
Unknown Object (File)
Fri, Dec 13, 6:30 AM
Unknown Object (File)
Thu, Dec 12, 10:33 PM
Unknown Object (File)
Thu, Dec 12, 12:25 AM
Unknown Object (File)
Tue, Dec 10, 1:33 AM
Unknown Object (File)
Sun, Dec 8, 6:32 AM
Unknown Object (File)
Sun, Dec 8, 5:37 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.