Closed Swivelgames closed 3 months ago
Note that ValueHint
is specifically meant to capture native shell completions.
I'm going to close in favor of #1232 as we likely won't support every case for users. We can observe users and maybe pull some things in that are frequently used but I don't want to speculatively keep this issue as open in case this ends up being one of the cases. After the community has adopted #1232, if there is enough of a case that this pattern is common, we can re-evaluate then.
Please complete the following tasks
Clap Version
4.4.7
Describe your use case
There are certain parameters that I would like to complete using paths. However, some of that paths aren't relative to the Current Working Directory.
Describe the solution you'd like
It would be great if you could specify a base directory for Path-like completions. In a Utopian world, it would also be great to include an optional max-depth:
Alternatives, if applicable
The alternative that I'm exploring right now is rolling my own completion for
Path
, which isn't ideal.