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)
Sat, Feb 15, 4:00 PM
Unknown Object (File)
Sun, Feb 9, 12:14 AM
Unknown Object (File)
Thu, Jan 30, 8:09 PM
Unknown Object (File)
Tue, Jan 21, 12:38 PM
Unknown Object (File)
Tue, Jan 21, 11:12 AM
Unknown Object (File)
Jan 13 2025, 8:50 PM
Unknown Object (File)
Dec 28 2024, 6:44 PM
Unknown Object (File)
Dec 17 2024, 11:31 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