Page MenuHomePhabricator

When tab-completing "arc" commands, suggest paths if the argument is empty and a path wildcard argument exists
ClosedPublic

Authored by epriestley on Jul 1 2020, 12:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 26, 4:40 AM
Unknown Object (File)
Thu, Jun 5, 5:01 PM
Unknown Object (File)
Tue, Jun 3, 7:26 PM
Unknown Object (File)
May 10 2025, 7:32 AM
Unknown Object (File)
Apr 29 2025, 11:22 AM
Unknown Object (File)
Apr 28 2025, 7:35 PM
Unknown Object (File)
Apr 23 2025, 11:28 PM
Unknown Object (File)
Apr 4 2025, 10:53 PM
Subscribers
None

Details

Summary

Currently, if you type "arc upload <tab>", we do not autocomplete the working directory. We should, but the "current argument" is the empty string and that's technically a prefix of every flag, so we suggest that you might want a flag instead.

You probably don't. Suggest paths in this case.

Test Plan
  • Ran "arc upload <tab>", saw path completions.
  • Ran "arc land <tab>" (this workflow does NOT take paths as arguments), saw flag completions.

Diff Detail

Repository
rARC Arcanist
Branch
future4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24719
Build 34089: Run Core Tests
Build 34088: arc lint + arc unit