Home
last modified time | relevance | path

Searched refs:Subcommand (Results 1 – 25 of 38) sorted by relevance

12

/third_party/rust/crates/clap/tests/derive/
Dnested_subcommands.rs15 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)]
Dissues.rs5 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()
Dsubcommands.rs17 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()
Dprivacy.rs26 use clap::Subcommand;
28 #[derive(Debug, Subcommand)]
Dtype_alias_regressions.rs3 use clap::{Parser, Subcommand, ValueEnum};
20 #[derive(Subcommand, PartialEq, Debug)]
Dboxed.rs1 use clap::{Args, Parser, Subcommand};
9 #[derive(Subcommand, PartialEq, Debug)]
Dhelp.rs1 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()
Ddoc_comments_help.rs17 use clap::{CommandFactory, Parser, Subcommand, ValueEnum};
273 #[derive(Subcommand, Debug)] in respect_subcommand_doc_comment()
/third_party/rust/crates/clap/tests/derive_ui/
Dsubcommand_on_struct.stderr1 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…
Dflatten_struct_in_enum.stderr1 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`:
Dsubcommand_on_struct.rs1 use clap::Subcommand;
3 #[derive(Subcommand, Debug)]
/third_party/rust/crates/clap/clap_derive/src/derives/
Dsubcommand.rs111 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 …]
Dinto_app.rs82 <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()
Dargs.rs180 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/
Dderive.rs330 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/
D03_04_subcommands.rs1 use clap::{Parser, Subcommand};
11 #[derive(Subcommand)]
D03_04_subcommands_alt.rs1 use clap::{Args, Parser, Subcommand};
11 #[derive(Subcommand)]
D01_quick.rs3 use clap::{Parser, Subcommand};
23 #[derive(Subcommand)]
/third_party/rust/crates/clap/examples/
Dgit-derive.rs5 use clap::{Args, Parser, Subcommand, ValueEnum};
16 #[derive(Debug, Subcommand)]
87 #[derive(Debug, Subcommand)]
/third_party/rust/crates/clap/clap_complete/tests/snapshots/
Dbasic.elvish25 cand test 'Subcommand'
35 cand test 'Subcommand'
Dbasic.fish4 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'
Dbasic.zsh71 'test:Subcommand' \
79 'test:Subcommand' \
/third_party/rust/crates/clap/examples/derive_ref/
Dhand_subcommand.rs2 use clap::{ArgMatches, Args as _, Command, FromArgMatches, Parser, Subcommand};
52 impl Subcommand for CliSub {
/third_party/rust/crates/clap/clap_complete/examples/
Dcompletion-derive.rs15 use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint};
31 #[derive(Subcommand, Debug, PartialEq)]
/third_party/rust/crates/clap/clap_derive/src/
Ditem.rs144 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 …]

12