/third_party/rust/crates/clap/tests/derive/ |
D | nested_subcommands.rs | 15 use clap::{Parser, Subcommand}; 27 #[derive(Subcommand, PartialEq, Debug)] 118 #[derive(Subcommand, PartialEq, Debug)] 128 #[derive(Subcommand, PartialEq, Debug)] 159 #[derive(Subcommand, PartialEq, Debug)] 165 #[derive(Subcommand, PartialEq, Debug)]
|
D | issues.rs | 5 use clap::{ArgGroup, Args, Parser, Subcommand}; 43 #[derive(Subcommand)] in issue_289() 69 #[derive(Subcommand)] in issue_324() 87 #[derive(Debug, Subcommand)] in issue_418()
|
D | subcommands.rs | 17 use clap::{Args, Parser, Subcommand}; 177 #[derive(Debug, PartialEq, Eq, Subcommand)] in global_passed_down() 214 #[derive(Debug, PartialEq, Eq, Subcommand)] in external_subcommand() 256 #[derive(Debug, PartialEq, Eq, Subcommand)] in external_subcommand_os_string() 280 #[derive(Debug, PartialEq, Eq, Subcommand)] in external_subcommand_optional() 306 #[derive(Subcommand, Debug, PartialEq, Eq)] in enum_in_enum_subsubcommand() 414 #[derive(Subcommand, PartialEq, Eq, Debug)] in update_sub_subcommands() 420 #[derive(Subcommand, PartialEq, Eq, Debug)] in update_sub_subcommands() 537 #[derive(Subcommand, PartialEq, Eq, Debug)] in subcommand_name_not_literal() 554 #[derive(Debug, PartialEq, Eq, Subcommand)] in skip_subcommand()
|
D | privacy.rs | 26 use clap::Subcommand; 28 #[derive(Debug, Subcommand)]
|
D | type_alias_regressions.rs | 3 use clap::{Parser, Subcommand, ValueEnum}; 20 #[derive(Subcommand, PartialEq, Debug)]
|
D | boxed.rs | 1 use clap::{Args, Parser, Subcommand}; 9 #[derive(Subcommand, PartialEq, Debug)]
|
D | help.rs | 1 use clap::{ArgAction, Args, CommandFactory, Parser, Subcommand}; 95 #[derive(Debug, Clone, Subcommand)] in app_help_heading_flattened() 108 #[derive(Debug, Clone, Subcommand)] in app_help_heading_flattened() 114 #[derive(Debug, Clone, Subcommand)] in app_help_heading_flattened()
|
D | doc_comments_help.rs | 17 use clap::{CommandFactory, Parser, Subcommand, ValueEnum}; 273 #[derive(Subcommand, Debug)] in respect_subcommand_doc_comment()
|
/third_party/rust/crates/clap/tests/derive_ui/ |
D | subcommand_on_struct.stderr | 1 error: `#[derive(Subcommand)]` only supports enums 4 3 | #[derive(Subcommand, Debug)] 7 …= note: this error originates in the derive macro `Subcommand` (in Nightly builds, run with -Z mac…
|
D | flatten_struct_in_enum.stderr | 1 error[E0277]: the trait bound `SubCmd: Subcommand` is not satisfied 5 | ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd` 7 = help: the following other types implement trait `Subcommand`:
|
D | subcommand_on_struct.rs | 1 use clap::Subcommand; 3 #[derive(Subcommand, Debug)]
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | subcommand.rs | 111 impl #impl_generics clap::Subcommand for #item_name #ty_generics #where_clause { in gen_for_enum() 192 … let #app_var = <#ty as clap::Subcommand>::augment_subcommands_for_update(#app_var); in gen_augment() 200 … let #app_var = <#ty as clap::Subcommand>::augment_subcommands(#app_var); in gen_augment() 211 Kind::Subcommand(_) => { in gen_augment() 223 … <#ty as clap::Subcommand>::augment_subcommands_for_update(#subcommand_var) in gen_augment() 229 … <#ty as clap::Subcommand>::augment_subcommands(#subcommand_var) in gen_augment() 373 Kind::Flatten(_) | Kind::Subcommand(_) | Kind::Command(_) => Some((variant, item)), in gen_has_subcommand() 395 if <#ty as clap::Subcommand>::has_subcommand(__clap_name) { in gen_has_subcommand() 478 Kind::Flatten(_) | Kind::Subcommand(_) | Kind::Command(_) => Some((variant, item)), in gen_from_arg_matches() 523 .map(|__clap_name| <#ty as clap::Subcommand>::has_subcommand(__clap_name)) in gen_from_arg_matches() [all …]
|
D | into_app.rs | 82 <Self as clap::Subcommand>::augment_subcommands(#app_var) in gen_for_enum() 87 <Self as clap::Subcommand>::augment_subcommands_for_update(#app_var) in gen_for_enum()
|
D | args.rs | 180 Kind::Subcommand(ty) => { in gen_augment() 209 … let #app_var = <#subcmd_type as clap::Subcommand>::augment_subcommands( #app_var ); in gen_augment() 436 Kind::Subcommand(ty) => { in gen_constructor() 445 …if #arg_matches.subcommand_name().map(<#subcmd_type as clap::Subcommand>::has_subcommand).unwrap_o… in gen_constructor() 556 Kind::Subcommand(ty) => { in gen_updater()
|
/third_party/rust/crates/clap/src/ |
D | derive.rs | 330 pub trait Subcommand: FromArgMatches + Sized { interface 456 impl<T: Subcommand> Subcommand for Box<T> { 458 <T as Subcommand>::augment_subcommands(cmd) in augment_subcommands() 461 <T as Subcommand>::augment_subcommands_for_update(cmd) in augment_subcommands_for_update() 464 <T as Subcommand>::has_subcommand(name) in has_subcommand()
|
/third_party/rust/crates/clap/examples/tutorial_derive/ |
D | 03_04_subcommands.rs | 1 use clap::{Parser, Subcommand}; 11 #[derive(Subcommand)]
|
D | 03_04_subcommands_alt.rs | 1 use clap::{Args, Parser, Subcommand}; 11 #[derive(Subcommand)]
|
D | 01_quick.rs | 3 use clap::{Parser, Subcommand}; 23 #[derive(Subcommand)]
|
/third_party/rust/crates/clap/examples/ |
D | git-derive.rs | 5 use clap::{Args, Parser, Subcommand, ValueEnum}; 16 #[derive(Debug, Subcommand)] 87 #[derive(Debug, Subcommand)]
|
/third_party/rust/crates/clap/clap_complete/tests/snapshots/ |
D | basic.elvish | 25 cand test 'Subcommand' 35 cand test 'Subcommand'
|
D | basic.fish | 4 complete -c my-app -n "__fish_use_subcommand" -f -a "test" -d 'Subcommand' 9 …h_seen_subcommand_from test; and not __fish_seen_subcommand_from help" -f -a "test" -d 'Subcommand'
|
D | basic.zsh | 71 'test:Subcommand' \ 79 'test:Subcommand' \
|
/third_party/rust/crates/clap/examples/derive_ref/ |
D | hand_subcommand.rs | 2 use clap::{ArgMatches, Args as _, Command, FromArgMatches, Parser, Subcommand}; 52 impl Subcommand for CliSub {
|
/third_party/rust/crates/clap/clap_complete/examples/ |
D | completion-derive.rs | 15 use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint}; 31 #[derive(Subcommand, Debug, PartialEq)]
|
/third_party/rust/crates/clap/clap_derive/src/ |
D | item.rs | 144 if matches!(&*res.kind, Kind::Command(_) | Kind::Subcommand(_)) { in from_subcommand_variant() 158 Kind::Subcommand(_) in from_subcommand_variant() 231 Kind::Subcommand(_) => { in from_args_field() 353 Some(MagicAttrName::Subcommand) if attr.value.is_none() => { in infer_kind() 363 let kind = Sp::new(Kind::Subcommand(ty), attr.name.clone().span()); in infer_kind() 861 | Some(MagicAttrName::Subcommand) in push_attrs() 918 | (Kind::Arg(_), Kind::Subcommand(_)) in set_kind() 921 | (Kind::Command(_), Kind::Subcommand(_)) in set_kind() 1158 Subcommand(Sp<Ty>), enumerator 1171 Self::Subcommand(_) => "subcommand", in name() [all …]
|