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)
Thu, Jun 5, 4:58 PM
Unknown Object (File)
May 6 2025, 4:16 PM
Unknown Object (File)
Apr 28 2025, 8:34 AM
Unknown Object (File)
Apr 25 2025, 10:56 PM
Unknown Object (File)
Apr 24 2025, 5:07 PM
Unknown Object (File)
Apr 19 2025, 2:14 AM
Unknown Object (File)
Apr 17 2025, 1:08 PM
Unknown Object (File)
Apr 13 2025, 10:42 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.