We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c14c1c0 commit cb278bcCopy full SHA for cb278bc
src/bin/cargo/commands/install.rs
@@ -65,7 +65,11 @@ pub fn cli() -> Command {
65
.arg(
66
opt("path", "Filesystem path to local crate to install from")
67
.value_name("PATH")
68
- .conflicts_with_all(&["git", "index", "registry"]),
+ .conflicts_with_all(&["git", "index", "registry"])
69
+ .add(clap_complete::engine::ArgValueCompleter::new(
70
+ clap_complete::engine::PathCompleter::any()
71
+ .filter(|path| path.join("Cargo.toml").exists()),
72
+ )),
73
)
74
.arg(opt("root", "Directory to install packages into").value_name("DIR"))
75
.arg(flag("force", "Force overwriting existing crates or binaries").short('f'))
0 commit comments