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)
Tue, Jan 21, 12:38 PM
Unknown Object (File)
Tue, Jan 21, 11:12 AM
Unknown Object (File)
Mon, Jan 13, 8:50 PM
Unknown Object (File)
Sat, Dec 28, 6:44 PM
Unknown Object (File)
Dec 17 2024, 11:31 PM
Unknown Object (File)
Dec 16 2024, 5:58 PM
Unknown Object (File)
Dec 10 2024, 7:52 PM
Unknown Object (File)
Dec 3 2024, 2:14 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable