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, Mar 19, 3:49 PM
Unknown Object (File)
Feb 14 2024, 12:36 PM
Unknown Object (File)
Feb 11 2024, 9:51 PM
Unknown Object (File)
Jan 17 2024, 8:51 PM
Unknown Object (File)
Dec 27 2023, 1:31 PM
Unknown Object (File)
Dec 27 2023, 1:31 PM
Unknown Object (File)
Dec 27 2023, 1:31 PM
Unknown Object (File)
Dec 27 2023, 1:30 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