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
F14092514: D21338.id50797.diff
Mon, Nov 25, 6:31 AM
Unknown Object (File)
Fri, Nov 22, 12:10 PM
Unknown Object (File)
Fri, Nov 22, 4:45 AM
Unknown Object (File)
Mon, Nov 18, 2:59 AM
Unknown Object (File)
Thu, Nov 14, 5:25 AM
Unknown Object (File)
Sat, Nov 9, 8:52 PM
Unknown Object (File)
Wed, Nov 6, 12:37 AM
Unknown Object (File)
Oct 15 2024, 11:41 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
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.