Home
last modified time | relevance | path

Searched refs:CommandFactory (Results 1 - 14 of 14) sorted by relevance

/third_party/rust/crates/clap/tests/derive/
H A Dutils.rs8 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 Dhelp.rs1 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 Dgroups.rs86 use clap::CommandFactory; in skip_group_avoids_duplicate_ids()
120 use clap::CommandFactory; in helpful_panic_on_duplicate_groups()
H A Dapp_name.rs1 use clap::CommandFactory;
H A Ddefault_value.rs3 use clap::{CommandFactory, Parser};
H A Ddoc_comments_help.rs17 use clap::{CommandFactory, Parser, Subcommand, ValueEnum};
H A Dflags.rs18 use clap::CommandFactory;
/third_party/rust/crates/clap/src/
H A Dderive.rs16 /// [`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 Dlib.rs115 pub use crate::derive::{Args, CommandFactory, FromArgMatches, Parser, Subcommand, ValueEnum};
/third_party/rust/crates/clap/clap_derive/src/derives/
H A Dinto_app.rs45 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 D05_01_assert.rs18 use clap::CommandFactory; in verify_cli()
H A D04_04_custom.rs2 use clap::{CommandFactory, Parser};
/third_party/rust/crates/clap/clap_derive/src/
H A Ddummies.rs18 impl clap::CommandFactory for #name { in into_app()
/third_party/rust/crates/clap/clap_complete/examples/
H A Dcompletion-derive.rs15 use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint};

Completed in 9 milliseconds