Searched refs:CommandFactory (Results 1 - 14 of 14) sorted by relevance
/third_party/rust/crates/clap/tests/derive/ |
H A D | utils.rs | 8 use clap::CommandFactory; 17 pub fn get_help<T: CommandFactory>() -> String { in get_help() 18 let output = <T as CommandFactory>::command().render_help().to_string(); in get_help() 26 pub fn get_long_help<T: CommandFactory>() -> String { in get_long_help() 27 let output = <T as CommandFactory>::command() in get_long_help() 37 pub fn get_subcommand_long_help<T: CommandFactory>(subcmd: &str) -> String { in get_subcommand_long_help() 38 let output = <T as CommandFactory>::command() in get_subcommand_long_help()
|
H A D | help.rs | 1 use clap::{ArgAction, Args, CommandFactory, Parser, Subcommand}; 276 use clap::CommandFactory; in derive_order_next_order() 328 use clap::CommandFactory; in derive_order_next_order_flatten() 379 use clap::CommandFactory; in derive_order_no_next_order() 422 use clap::CommandFactory; in derive_possible_value_help()
|
H A D | groups.rs | 86 use clap::CommandFactory; in skip_group_avoids_duplicate_ids() 120 use clap::CommandFactory; in helpful_panic_on_duplicate_groups()
|
H A D | app_name.rs | 1 use clap::CommandFactory;
|
H A D | default_value.rs | 3 use clap::{CommandFactory, Parser};
|
H A D | doc_comments_help.rs | 17 use clap::{CommandFactory, Parser, Subcommand, ValueEnum};
|
H A D | flags.rs | 18 use clap::CommandFactory;
|
/third_party/rust/crates/clap/src/ |
H A D | derive.rs | 16 /// [`CommandFactory`] which uses those two underlying traits to build the two 79 pub trait Parser: FromArgMatches + CommandFactory + Sized { 82 let mut matches = <Self as CommandFactory>::command().get_matches(); in parse() 97 let mut matches = ok!(<Self as CommandFactory>::command().try_get_matches()); in try_parse() 107 let mut matches = <Self as CommandFactory>::command().get_matches_from(itr); in parse_from() 126 let mut matches = ok!(<Self as CommandFactory>::command().try_get_matches_from(itr)); in try_parse_from() 136 let mut matches = <Self as CommandFactory>::command_for_update().get_matches_from(itr); in update_from() 153 ok!(<Self as CommandFactory>::command_for_update().try_get_matches_from(itr)); in try_update_from() 162 pub trait CommandFactory: Sized { traits 291 /// See also [`CommandFactory`] [all...] |
H A D | lib.rs | 115 pub use crate::derive::{Args, CommandFactory, FromArgMatches, Parser, Subcommand, ValueEnum};
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
H A D | into_app.rs | 45 impl #impl_generics clap::CommandFactory for #item_name #ty_generics #where_clause { in gen_for_struct() 85 impl #impl_generics clap::CommandFactory for #item_name #ty_generics #where_clause { in gen_for_enum()
|
/third_party/rust/crates/clap/examples/tutorial_derive/ |
H A D | 05_01_assert.rs | 18 use clap::CommandFactory; in verify_cli()
|
H A D | 04_04_custom.rs | 2 use clap::{CommandFactory, Parser};
|
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | dummies.rs | 18 impl clap::CommandFactory for #name { in into_app()
|
/third_party/rust/crates/clap/clap_complete/examples/ |
H A D | completion-derive.rs | 15 use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint};
|
Completed in 9 milliseconds