Home
last modified time | relevance | path

Searched refs:value_hint (Results 1 - 16 of 16) sorted by relevance

/third_party/rust/crates/clap/clap_complete/examples/
H A 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(ValueHin in build_cli()
[all...]
H A 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
[all...]
H A Ddynamic.rs10 .value_hint(clap::ValueHint::FilePath), in command()
/third_party/rust/crates/clap/src/builder/
H A Dmod.rs16 mod value_hint; modules
37 pub use value_hint::ValueHint;
H A Darg.rs85 pub(crate) value_hint: Option<ValueHint>,
1237 /// .value_hint(ValueHint::Username);
1250 /// .value_hint(ValueHint::CommandWithArguments)
1254 pub fn value_hint(mut self, value_hint: impl IntoResettable<ValueHint>) -> Self { in value_hint() functions
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()
[all...]
/third_party/rust/crates/clap/clap_complete_fig/tests/
H A Dfig.rs76 fn value_hint() { in value_hint() functions
80 "tests/snapshots/value_hint.fig.js", in value_hint()
H A Dcommon.rs31 .value_hint(clap::ValueHint::FilePath) in basic_command()
177 .value_hint(clap::ValueHint::Unknown), in basic_command()
182 .value_hint(clap::ValueHint::Other), in basic_command()
188 .value_hint(clap::ValueHint::AnyPath), in basic_command()
194 .value_hint(clap::ValueHint::FilePath), in basic_command()
200 .value_hint(clap::ValueHint::DirPath), in basic_command()
206 .value_hint(clap::ValueHint::ExecutablePath), in basic_command()
211 .value_hint(clap::ValueHint::CommandName), in basic_command()
217 .value_hint(clap::ValueHint::CommandString), in basic_command()
224 .value_hint(cla in basic_command()
[all...]
/third_party/rust/crates/clap/clap_complete/tests/
H A Dpowershell.rs76 fn value_hint() { in value_hint() functions
80 "tests/snapshots/value_hint.ps1", in value_hint()
H A Delvish.rs76 fn value_hint() { in value_hint() functions
80 "tests/snapshots/value_hint.elvish", in value_hint()
H A Dfish.rs76 fn value_hint() { in value_hint() functions
80 "tests/snapshots/value_hint.fish", in value_hint()
H A Dzsh.rs76 fn value_hint() { in value_hint() functions
80 "tests/snapshots/value_hint.zsh", in value_hint()
H A Dbash.rs76 fn value_hint() { in value_hint() functions
80 "tests/snapshots/value_hint.bash", in value_hint()
H A Dcommon.rs33 .value_hint(clap::ValueHint::FilePath) in basic_command()
182 .value_hint(clap::ValueHint::Unknown), in basic_command()
187 .value_hint(clap::ValueHint::Other), in basic_command()
193 .value_hint(clap::ValueHint::AnyPath), in basic_command()
199 .value_hint(clap::ValueHint::FilePath), in basic_command()
205 .value_hint(clap::ValueHint::DirPath), in basic_command()
211 .value_hint(clap::ValueHint::ExecutablePath), in basic_command()
216 .value_hint(clap::ValueHint::CommandName), in basic_command()
222 .value_hint(clap::ValueHint::CommandString), in basic_command()
229 .value_hint(cla in basic_command()
[all...]
/third_party/rust/crates/clap/clap_mangen/tests/
H A Droff.rs46 fn value_hint() { in value_hint() functions
49 common::assert_matches_path("tests/snapshots/value_hint.bash.roff", cmd); in value_hint()
H A Dcommon.rs33 .value_hint(clap::ValueHint::FilePath) in basic_command()
175 .value_hint(clap::ValueHint::Unknown), in basic_command()
180 .value_hint(clap::ValueHint::Other), in basic_command()
186 .value_hint(clap::ValueHint::AnyPath), in basic_command()
192 .value_hint(clap::ValueHint::FilePath), in basic_command()
198 .value_hint(clap::ValueHint::DirPath), in basic_command()
204 .value_hint(clap::ValueHint::ExecutablePath), in basic_command()
209 .value_hint(clap::ValueHint::CommandName), in basic_command()
215 .value_hint(clap::ValueHint::CommandString), in basic_command()
222 .value_hint(cla in basic_command()
[all...]
/third_party/rust/crates/clap/examples/
H A Dtyped-derive.rs13 #[arg(short = 'I', value_name = "DIR", value_hint = clap::ValueHint::DirPath)]

Completed in 9 milliseconds