Home
last modified time | relevance | path

Searched refs:value_hint (Results 1 – 17 of 17) sorted by relevance

/third_party/rust/crates/clap/clap_complete/examples/
Dcompletion.rs25 .value_hint(ValueHint::Unknown), in build_cli()
27 .arg(Arg::new("other").long("other").value_hint(ValueHint::Other)) in build_cli()
32 .value_hint(ValueHint::AnyPath), in build_cli()
38 .value_hint(ValueHint::FilePath), in build_cli()
44 .value_hint(ValueHint::DirPath), in build_cli()
50 .value_hint(ValueHint::ExecutablePath), in build_cli()
55 .value_hint(ValueHint::CommandName), in build_cli()
61 .value_hint(ValueHint::CommandString), in build_cli()
68 .value_hint(ValueHint::CommandWithArguments), in build_cli()
74 .value_hint(ValueHint::Username), in build_cli()
[all …]
Dcompletion-derive.rs40 #[arg(long, value_hint = ValueHint::Unknown)]
42 #[arg(long, value_hint = ValueHint::Other)]
44 #[arg(short, long, value_hint = ValueHint::AnyPath)]
46 #[arg(short, long, value_hint = ValueHint::FilePath)]
48 #[arg(short, long, value_hint = ValueHint::DirPath)]
50 #[arg(short, long, value_hint = ValueHint::ExecutablePath)]
52 #[arg(long, value_hint = ValueHint::CommandName)]
54 #[arg(short, long, value_hint = ValueHint::CommandString)]
57 #[arg(trailing_var_arg = true, value_hint = ValueHint::CommandWithArguments)]
59 #[arg(short, long, value_hint = ValueHint::Username)]
[all …]
Ddynamic.rs10 .value_hint(clap::ValueHint::FilePath), in command()
/third_party/rust/crates/clap/clap_complete_fig/tests/
Dcommon.rs31 .value_hint(clap::ValueHint::FilePath) in feature_sample_command()
177 .value_hint(clap::ValueHint::Unknown), in value_hint_command()
182 .value_hint(clap::ValueHint::Other), in value_hint_command()
188 .value_hint(clap::ValueHint::AnyPath), in value_hint_command()
194 .value_hint(clap::ValueHint::FilePath), in value_hint_command()
200 .value_hint(clap::ValueHint::DirPath), in value_hint_command()
206 .value_hint(clap::ValueHint::ExecutablePath), in value_hint_command()
211 .value_hint(clap::ValueHint::CommandName), in value_hint_command()
217 .value_hint(clap::ValueHint::CommandString), in value_hint_command()
224 .value_hint(clap::ValueHint::CommandWithArguments), in value_hint_command()
[all …]
Dfig.rs76 fn value_hint() { in value_hint() function
/third_party/rust/crates/clap/clap_complete/tests/
Dcommon.rs33 .value_hint(clap::ValueHint::FilePath) in feature_sample_command()
182 .value_hint(clap::ValueHint::Unknown), in value_hint_command()
187 .value_hint(clap::ValueHint::Other), in value_hint_command()
193 .value_hint(clap::ValueHint::AnyPath), in value_hint_command()
199 .value_hint(clap::ValueHint::FilePath), in value_hint_command()
205 .value_hint(clap::ValueHint::DirPath), in value_hint_command()
211 .value_hint(clap::ValueHint::ExecutablePath), in value_hint_command()
216 .value_hint(clap::ValueHint::CommandName), in value_hint_command()
222 .value_hint(clap::ValueHint::CommandString), in value_hint_command()
229 .value_hint(clap::ValueHint::CommandWithArguments), in value_hint_command()
[all …]
Delvish.rs76 fn value_hint() { in value_hint() function
Dfish.rs76 fn value_hint() { in value_hint() function
Dzsh.rs76 fn value_hint() { in value_hint() function
Dpowershell.rs76 fn value_hint() { in value_hint() function
Dbash.rs76 fn value_hint() { in value_hint() function
/third_party/rust/crates/clap/clap_mangen/tests/
Dcommon.rs33 .value_hint(clap::ValueHint::FilePath) in feature_sample_command()
175 .value_hint(clap::ValueHint::Unknown), in value_hint_command()
180 .value_hint(clap::ValueHint::Other), in value_hint_command()
186 .value_hint(clap::ValueHint::AnyPath), in value_hint_command()
192 .value_hint(clap::ValueHint::FilePath), in value_hint_command()
198 .value_hint(clap::ValueHint::DirPath), in value_hint_command()
204 .value_hint(clap::ValueHint::ExecutablePath), in value_hint_command()
209 .value_hint(clap::ValueHint::CommandName), in value_hint_command()
215 .value_hint(clap::ValueHint::CommandString), in value_hint_command()
222 .value_hint(clap::ValueHint::CommandWithArguments), in value_hint_command()
[all …]
Droff.rs46 fn value_hint() { in value_hint() function
/third_party/rust/crates/clap/src/builder/
Dmod.rs16 mod value_hint; module
37 pub use value_hint::ValueHint;
Darg.rs85 pub(crate) value_hint: Option<ValueHint>, field
1254 pub fn value_hint(mut self, value_hint: impl IntoResettable<ValueHint>) -> Self { in value_hint() method
1255 self.value_hint = value_hint.into_resettable().into_option(); in value_hint()
3877 self.value_hint.unwrap_or_else(|| { in get_value_hint()
4307 .field("value_hint", &self.value_hint) in fmt()
/third_party/rust/crates/clap/examples/
Dtyped-derive.rs13 #[arg(short = 'I', value_name = "DIR", value_hint = clap::ValueHint::DirPath)]
/third_party/rust/crates/clap/
DCHANGELOG.md231 - Allow using `Arg::last(true)` with `Arg::value_hint(ValueHint::CommandWithArguments)`
1408 - Give completion scripts hints with `Arg::value_hint` ([clap-rs/clap#1793](https://github.com/clap…