/third_party/rust/crates/clap/clap_complete/src/shells/ |
D | shell.rs | 5 use clap::builder::PossibleValue; 61 fn to_possible_value<'a>(&self) -> Option<PossibleValue> { in to_possible_value() argument 63 Shell::Bash => PossibleValue::new("bash"), in to_possible_value() 64 Shell::Elvish => PossibleValue::new("elvish"), in to_possible_value() 65 Shell::Fish => PossibleValue::new("fish"), in to_possible_value() 66 Shell::PowerShell => PossibleValue::new("powershell"), in to_possible_value() 67 Shell::Zsh => PossibleValue::new("zsh"), in to_possible_value()
|
/third_party/rust/crates/clap/tests/builder/ |
D | possible_values.rs | 1 use clap::{builder::PossibleValue, error::ErrorKind, Arg, ArgAction, Command}; 28 .value_parser([PossibleValue::new("test123") in possible_value_arg_value() 238 PossibleValue::new("fast").alias("fost"), in possible_values_alias_output() 239 PossibleValue::new("ludicrous speed").aliases(["ls", "lcs"]), in possible_values_alias_output() 277 PossibleValue::new("ludicrous speed"), in possible_values_hidden_output() 278 PossibleValue::new("forbidden speed").hide(true), in possible_values_hidden_output() 338 PossibleValue::new("fast").alias("fost"), in missing_possible_value_error() 339 PossibleValue::new("ludicrous speed"), in missing_possible_value_error() 340 PossibleValue::new("forbidden speed").hide(true), in missing_possible_value_error() 357 .value_parser([PossibleValue::new("test123").alias("123"), "test321".into()]) in alias() [all …]
|
D | help.rs | 3 use clap::{arg, builder::PossibleValue, error::ErrorKind, Arg, ArgAction, ArgGroup, Command}; 479 PossibleValue::new("short_name") in possible_value_wrapped_help() 481 PossibleValue::new("second").help("Short help gets handled the same"), in possible_value_wrapped_help() 489 PossibleValue::new("long enough name to trigger new line").help( in possible_value_wrapped_help() 492 PossibleValue::new("second"), in possible_value_wrapped_help() 500 PossibleValue::new("name").help("Short enough help message with no wrapping"), in possible_value_wrapped_help() 501 PossibleValue::new("second").help("short help"), in possible_value_wrapped_help() 615 PossibleValue::new("secret speed").hide(true), in hide_single_possible_val() 661 PossibleValue::new("fast"), in possible_vals_with_help() 662 PossibleValue::new("slow").help("not as fast"), in possible_vals_with_help() [all …]
|
/third_party/rust/crates/clap/src/util/ |
D | color.rs | 1 use crate::builder::PossibleValue; 94 fn to_possible_value(&self) -> Option<PossibleValue> { in to_possible_value() argument 97 PossibleValue::new("auto").help("Use colored output if writing to a terminal/TTY") in to_possible_value() 99 Self::Always => PossibleValue::new("always").help("Always use colored output"), in to_possible_value() 100 Self::Never => PossibleValue::new("never").help("Never use colored output"), in to_possible_value()
|
/third_party/rust/crates/clap/src/builder/ |
D | possible_value.rs | 35 pub struct PossibleValue { struct 42 impl PossibleValue { argument 61 PossibleValue { in new() 146 impl PossibleValue { impl 230 impl<S: Into<Str>> From<S> for PossibleValue { implementation
|
D | value_parser.rs | 245 ) -> Option<Box<dyn Iterator<Item = crate::builder::PossibleValue> + '_>> { in possible_values() 503 P: Into<super::PossibleValue>, 538 P: Into<super::PossibleValue>, 591 ) -> Option<Box<dyn Iterator<Item = crate::builder::PossibleValue> + '_>>; in possible_values() 627 ) -> Option<Box<dyn Iterator<Item = crate::builder::PossibleValue> + '_>> { in possible_values() 717 ) -> Option<Box<dyn Iterator<Item = crate::builder::PossibleValue> + '_>> { in possible_values() 1086 ) -> Option<Box<dyn Iterator<Item = crate::builder::PossibleValue> + '_>> { in possible_values() 1139 pub struct PossibleValuesParser(Vec<super::PossibleValue>); 1196 ) -> Option<Box<dyn Iterator<Item = crate::builder::PossibleValue> + '_>> { in possible_values() 1204 T: Into<super::PossibleValue>, [all …]
|
D | mod.rs | 32 pub use possible_value::PossibleValue;
|
D | arg.rs | 17 use crate::builder::PossibleValue; 3823 pub fn get_possible_values(&self) -> Vec<PossibleValue> { in get_possible_values() argument
|
D | command.rs | 16 use crate::builder::PossibleValue; 4601 .any(PossibleValue::should_show_help) in long_help_exists_()
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_01_enum.rs | 1 use clap::{arg, builder::PossibleValue, command, value_parser, ValueEnum}; 15 fn to_possible_value<'a>(&self) -> Option<PossibleValue> { in to_possible_value() argument 17 Mode::Fast => PossibleValue::new("fast").help("Run swiftly"), in to_possible_value() 18 Mode::Slow => PossibleValue::new("slow").help("Crawl slowly but steadily"), in to_possible_value()
|
/third_party/rust/crates/clap/clap_mangen/tests/ |
D | common.rs | 1 use clap::builder::PossibleValue; 155 .value_parser([clap::builder::PossibleValue::new( in sub_subcommands_command() 297 PossibleValue::new("fast").help("use the Fast method"), in possible_values_command() 298 PossibleValue::new("slow").help("use the slow method"), in possible_values_command() 299 PossibleValue::new("normal") in possible_values_command() 309 PossibleValue::new("left").help("run left adjusted"), in possible_values_command() 310 PossibleValue::new("right"), in possible_values_command() 311 PossibleValue::new("center").hide(true), in possible_values_command()
|
/third_party/rust/crates/clap/clap_complete/src/ |
D | dynamic.rs | 232 fn to_possible_value(&self) -> ::std::option::Option<clap::builder::PossibleValue> { in to_possible_value() argument 238 clap::builder::PossibleValue::new(value) in to_possible_value() 247 clap::builder::PossibleValue::new(value) in to_possible_value() 256 clap::builder::PossibleValue::new(value) in to_possible_value() 265 clap::builder::PossibleValue::new(value) in to_possible_value() 274 clap::builder::PossibleValue::new(value) in to_possible_value()
|
/third_party/rust/crates/clap/clap_complete/tests/ |
D | common.rs | 1 use clap::builder::PossibleValue; 161 PossibleValue::new("Lest quotes, aren't escaped.") in sub_subcommands_command() 163 PossibleValue::new("Second to trigger display of options"), in sub_subcommands_command()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | value_enum.rs | 93 clap::builder::PossibleValue::new(#name) in lits() 119 fn to_possible_value<'a>(&self) -> ::std::option::Option<clap::builder::PossibleValue> { in gen_to_possible_value()
|
/third_party/rust/crates/clap/tests/derive/ |
D | value_enum.rs | 413 clap::builder::PossibleValue::new("foo"), in skip_variant() 414 clap::builder::PossibleValue::new("bar") in skip_variant() 444 clap::builder::PossibleValue::new("foo"), in skip_non_unit_variant() 445 clap::builder::PossibleValue::new("bar") in skip_non_unit_variant()
|
/third_party/rust/crates/clap/src/ |
D | derive.rs | 4 use crate::builder::PossibleValue; 394 fn to_possible_value(&self) -> Option<PossibleValue>; in to_possible_value() argument
|
/third_party/rust/crates/clap/src/output/ |
D | help_template.rs | 7 use crate::builder::PossibleValue; 606 && possible_vals.iter().any(PossibleValue::should_show_help) in help() 782 || self.use_long && possible_vals.iter().any(PossibleValue::should_show_help)) in spec_vals() 791 .filter_map(PossibleValue::get_visible_quoted_name) in spec_vals()
|
/third_party/rust/crates/clap/clap_derive/src/ |
D | dummies.rs | 85 fn to_possible_value<'a>(&self) -> ::std::option::Option<clap::builder::PossibleValue>{ in value_enum()
|
/third_party/rust/crates/clap/clap_mangen/src/ |
D | render.rs | 330 let possibles: Vec<&clap::builder::PossibleValue> = in get_possible_values() 339 fn format_possible_values(possibles: &Vec<&clap::builder::PossibleValue>) -> (Vec<String>, bool) { in format_possible_values()
|
/third_party/rust/crates/clap/src/parser/ |
D | validator.rs | 3 use crate::builder::{Arg, ArgGroup, ArgPredicate, Command, PossibleValue}; 556 pub(crate) fn get_possible_values_cli(a: &Arg) -> Vec<PossibleValue> { in get_possible_values_cli() argument
|
/third_party/rust/crates/clap/clap_complete/ |
D | CHANGELOG.md | 64 - *(bash)* Complete visible `PossibleValue`s, rather than hidden
|
/third_party/rust/crates/clap/clap_complete/src/generator/ |
D | utils.rs | 123 pub fn possible_values(a: &Arg) -> Option<Vec<clap::builder::PossibleValue>> { in possible_values() argument
|
/third_party/rust/crates/clap/clap_complete_fig/tests/ |
D | common.rs | 157 .value_parser([clap::builder::PossibleValue::new( in sub_subcommands_command()
|
/third_party/rust/crates/clap/ |
D | CHANGELOG.md | 106 - Have `Arg::value_parser` accept `Vec<impl Into<PossibleValue>>` 460 - Removed lifetimes from `Command`, `Arg`, `ArgGroup`, and `PossibleValue`, assuming `'static`. `s… 554 - Can now pass runtime generated data to `Command`, `Arg`, `ArgGroup`, `PossibleValue`, etc without… 559 - *(help)* Show `PossibleValue::help` in long help (`--help`) (#3312) 712 - `clap::{PossibleValue, ValueHint}` to `clap::builder::{PossibleValue, ValueHint}` 912 - *(help)* Show `PossibleValue::help` in long help (`--help`) **(gated behind `unstable-v4`)** (#3… 1217 …::about` `Arg::long_about` back to `help` and `long_help` and change `PossibleValue::about` to `he… 1219 4. Change `PossibleValue::hidden` to `PossibleValue::hide` 1332 - `clap::PossibleValue` to allow
|