Open KAAtheWiseGit opened 3 months ago
clap_complete_nushell
does not yet have support for ValueHint. Someone is welcome to contribute it and/or add Rust-native nushell completion support (see also #3166).
Note: we implicitly set the ValueHint
based on an Arg
being a PathBuf
, see
https://github.com/clap-rs/clap/blob/16fba4b9f91cf772ab1f6e7b1016a257e5f6cf62/clap_builder/src/builder/arg.rs#L4023-L4037
Please complete the following tasks
Rust Version
rustc 1.80.0 (051478957 2024-07-21) (Alpine Linux 1.80.0-r0)
Clap Version
4.4.6 (4.5.3 for
clap_complete_nushell
)Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run
Actual Behaviour
The following completion is generated:
Expected Behaviour
PathBuf
should have thepath
type in the completions, so that the native path completion works.Vec<PathBuf>
should have theglob
type, otherwise globbing breaks:sd a *
will return an error, because path*
doesn't exist.Additional Context
No response
Debug Output