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
F18776913: D21338.id.diff
Sat, Oct 11, 12:06 AM
F18738030: D21338.id50771.diff
Wed, Oct 1, 1:46 PM
F18547601: D21338.diff
Sep 8 2025, 6:40 AM
F18436071: D21338.id50771.diff
Aug 31 2025, 10:44 AM
F18435541: D21338.diff
Aug 31 2025, 10:10 AM
F18198699: D21338.diff
Aug 18 2025, 1:10 AM
F18101175: D21338.id.diff
Aug 9 2025, 12:21 PM
F18098050: D21338.id50771.diff
Aug 8 2025, 6:08 PM
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.