Searched refs:subcmds (Results 1 - 5 of 5) sorted by relevance
/third_party/alsa-utils/axfer/ |
H A D | main.c | 20 enum subcmds { enum 84 static bool decide_subcmd(int argc, char *const *argv, enum subcmds *subcmd) in decide_subcmd() 88 enum subcmds subcmd; in decide_subcmd() 97 enum subcmds subcmd; in decide_subcmd() 202 static bool detect_subcmd(int argc, char *const *argv, enum subcmds *subcmd) in detect_subcmd() 204 static const char *const subcmds[] = { in detect_subcmd() local 215 for (i = 0; i < (int)ARRAY_SIZE(subcmds); ++i) { in detect_subcmd() 216 if (!strcmp(argv[1], subcmds[i])) { in detect_subcmd() 247 enum subcmds subcmd; in main()
|
/third_party/rust/crates/clap/clap_complete/src/shells/ |
H A D | bash.rs | 37 ;;{subcmds} in generate() 67 subcmds = all_subcommands(cmd), 81 subcmds: &mut Vec<(String, String, String)>, in all_subcommands() 88 subcmds.push(( in all_subcommands() 94 subcmds.push(( in all_subcommands() 101 add_command(&fn_name, subcmd, subcmds); in all_subcommands() 104 let mut subcmds = vec![]; in all_subcommands() variables 107 add_command(&fn_name, subcmd, &mut subcmds); in all_subcommands() 109 subcmds.sort(); in all_subcommands() 112 for (parent_fn_name, name, fn_name) in subcmds { in all_subcommands() [all...] |
/third_party/rust/crates/clap/clap_complete/src/generator/ |
H A D | utils.rs | 10 let mut subcmds: Vec<_> = subcommands(cmd); in all_subcommands() variables 13 subcmds.extend(sc_v); in all_subcommands() 16 subcmds in all_subcommands() 40 let mut subcmds = vec![]; in subcommands() variables 51 subcmds.push((sc.get_name().to_string(), sc_bin_name.to_string())); in subcommands() 54 subcmds in subcommands()
|
/third_party/rust/crates/clap/src/output/ |
H A D | help_template.rs | 48 let subcmds = self.template.cmd.has_visible_subcommands(); 50 let template = if non_pos || pos || subcmds { 350 let subcmds = self.cmd.has_visible_subcommands(); 360 if subcmds {
|
/third_party/rust/crates/clap/src/builder/ |
H A D | command.rs | 417 pub fn subcommands(mut self, subcmds: impl IntoIterator<Item = impl Into<Self>>) -> Self { in subcommands() 418 for subcmd in subcmds { in subcommands()
|
Completed in 8 milliseconds