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
F18194065: D21385.diff
Sun, Aug 17, 8:18 AM
F17846560: D21385.id.diff
Jul 27 2025, 5:01 AM
F17817937: D21385.id50910.diff
Jul 25 2025, 11:59 PM
F17805971: D21385.diff
Jul 25 2025, 1:16 PM
F17752069: D21385.diff
Jul 22 2025, 6:27 AM
Unknown Object (File)
Jun 26 2025, 4:40 AM
Unknown Object (File)
Jun 5 2025, 5:01 PM
Unknown Object (File)
Jun 3 2025, 7:26 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