/external/autotest/server/ |
D | subcommand_unittest.py | 14 from autotest_lib.server import subcommand 21 class wrapper(subcommand.subcommand): 41 subcommand.subcommand.fork_hooks = [] 42 subcommand.subcommand.join_hooks = [] 61 cmd = subcommand.subcommand(func, (2, 3)) 65 self.god.stub_function(subcommand.os.path, 'abspath') 66 self.god.stub_function(subcommand.os.path, 'exists') 67 self.god.stub_function(subcommand.os, 'mkdir') 69 subcommand.os.path.abspath.expect_call('dir').and_return('/foo/dir') 70 subcommand.os.path.exists.expect_call('/foo/dir').and_return(False) [all …]
|
/external/llvm-project/lldb/test/API/functionalities/completion/ |
D | TestCompletion.py | 117 for subcommand in subcommands: 118 self.complete_from_to('process ' + subcommand + ' mac', 119 'process ' + subcommand + ' mach-o-core') 298 for subcommand in subcommands: 299 self.complete_from_to('watchpoint ' + subcommand + ' ', 300 'watchpoint ' + subcommand + ' ') 307 for subcommand in subcommands: 308 self.complete_from_to('watchpoint ' + subcommand + ' ', ['1']) 471 for subcommand in subcommands: 472 self.complete_from_to('thread ' + subcommand + ' ', [all …]
|
/external/python/cpython3/Tools/peg_generator/scripts/ |
D | benchmark.py | 95 def run_benchmark_xxl(subcommand, parser, source): argument 96 if subcommand == "compile": 98 elif subcommand == "parse": 100 elif subcommand == "notree": 104 def run_benchmark_stdlib(subcommand, parser): argument 113 mode=modes[subcommand], 120 subcommand = args.subcommand 124 if subcommand is None: 130 run_benchmark_xxl(subcommand, parser, source) 132 run_benchmark_stdlib(subcommand, parser)
|
/external/autotest/client/site_tests/hardware_TPMCheck/ |
D | hardware_TPMCheck.py | 41 def __run_tpmc_cmd(subcommand): argument 47 cmd = 'tpmc %s' % subcommand 51 def check_tpmc(subcommand, expected): argument 62 error_msg = 'invalid response to tpmc %s' % subcommand 64 out = __run_tpmc_cmd(subcommand) 68 result_set = utils.set_from_keyval_output(__run_tpmc_cmd(subcommand)) 126 for subcommand in ['getvf', 'getpf']: 127 check_tpmc(subcommand, tpmc_expected[subcommand])
|
/external/rust/crates/clap/src/completions/ |
D | fish.rs | 32 fn gen_fish_inner(root_command: &str, comp_gen: &FishGen, subcommand: &str, buffer: &mut String) { 48 if root_command == subcommand { 51 basic_template.push_str(format!("\"__fish_seen_subcommand_from {}\"", subcommand).as_str()); 87 for subcommand in &comp_gen.p.subcommands { 90 template.push_str(format!(" -a \"{}\"", &subcommand.p.meta.name).as_str()); 91 if let Some(data) = subcommand.p.meta.about { 99 for subcommand in &comp_gen.p.subcommands { 100 let sub_comp_gen = FishGen::new(&subcommand.p); 101 gen_fish_inner(root_command, &sub_comp_gen, &subcommand.to_string(), buffer);
|
D | elvish.rs | 108 for subcommand in &p.subcommands { in generate_inner() 109 let data = &subcommand.p.meta.name; in generate_inner() 110 let tooltip = get_tooltip(subcommand.p.meta.about, data); in generate_inner() 122 for subcommand in &p.subcommands { in generate_inner() 123 let subcommand_subcommands_cases = generate_inner(&subcommand.p, &command_name, names); in generate_inner()
|
D | powershell.rs | 139 for subcommand in &p.subcommands { in generate_inner() 140 let data = &subcommand.p.meta.name; in generate_inner() 141 let tooltip = get_tooltip(subcommand.p.meta.about, data); in generate_inner() 160 for subcommand in &p.subcommands { in generate_inner() 161 let subcommand_subcommands_cases = generate_inner(&subcommand.p, &command_name, names); in generate_inner()
|
/external/autotest/server/tests/netpipe/ |
D | netpipe.py | 1 from autotest_lib.server import autotest, hosts, subcommand, test 49 server_command = subcommand.subcommand(server_at.run, 52 client_command = subcommand.subcommand(client_at.run, 56 subcommand.parallel([server_command, client_command])
|
/external/autotest/server/tests/netperf2/ |
D | netperf2.py | 5 from autotest_lib.server import autotest, hosts, subcommand, test 52 server_command = subcommand.subcommand(server_at.run, 55 client_command = subcommand.subcommand(client_at.run, 59 subcommand.parallel([server_command, client_command])
|
/external/autotest/client/site_tests/firmware_Cr50VirtualNVRam/ |
D | firmware_Cr50VirtualNVRam.py | 14 def run_tpmc_cmd(subcommand): argument 22 cmd = 'tpmc %s 2>&1 | awk 1 ORS=""' % subcommand 25 def check_tpmc(subcommand, expected): argument 32 error_msg = 'invalid response to tpmc %s' % subcommand 33 out = run_tpmc_cmd(subcommand) 39 def expect_tpmc_error(subcommand, expected_error): argument 41 check_tpmc(subcommand, '.*failed.*%s.*' % expected_error)
|
/external/python/cpython3/Lib/test/ |
D | test_dtrace.py | 57 def generate_trace_command(self, script_file, subcommand=None): argument 59 if subcommand: 60 command += ["-c", subcommand] 63 def trace(self, script_file, subcommand=None): argument 64 command = self.generate_trace_command(script_file, subcommand) 75 subcommand = " ".join([sys.executable] + python_flags + [python_file]) 76 return self.trace(script_file, subcommand)
|
/external/rust/crates/structopt/tests/ |
D | nested-subcommands.rs | 17 #[structopt(subcommand)] 33 #[structopt(subcommand)] 108 #[structopt(subcommand)] 116 #[structopt(subcommand)] 147 #[structopt(subcommand)] 151 #[structopt(subcommand)]
|
D | privacy.rs | 16 #[structopt(subcommand)] 17 pub subcommand: super::subcommands::SubCommand, field
|
D | issues.rs | 82 #[structopt(subcommand)] in issue_324() 99 #[structopt(subcommand)] in issue_359()
|
/external/rust/crates/clap/src/ |
D | suggestions.rs | 66 .filter_map(|subcommand| { in did_you_mean_flag_suffix() 67 let opts = subcommand in did_you_mean_flag_suffix() 72 .chain(subcommand.p.opts.iter().filter_map(|o| o.s.long)); in did_you_mean_flag_suffix() 78 let score = match args_rest.iter().position(|x| *x == subcommand.get_name()) { in did_you_mean_flag_suffix() 87 Format::Good(subcommand.get_name()) in did_you_mean_flag_suffix()
|
/external/rust/crates/structopt/tests/ui/ |
D | struct_subcommand.stderr | 1 error: subcommand is only allowed on fields 4 12 | #[structopt(name = "basic", subcommand)]
|
D | subcommand_and_methods.stderr | 1 error: methods in attributes are not allowed for subcommand 4 17 | #[structopt(subcommand, long)]
|
D | subcommand_and_flatten.stderr | 1 error: subcommand, flatten and skip cannot be used together 4 17 | #[structopt(subcommand, flatten)]
|
D | skip_subcommand.stderr | 1 error: subcommand, flatten and skip cannot be used together 4 17 | #[structopt(subcommand, skip)]
|
D | subcommand_and_parse.stderr | 1 error: parse attribute is not allowed for subcommand 4 17 | #[structopt(subcommand, parse(from_occurrences))]
|
/external/rust/crates/clap/src/args/ |
D | arg_matches.rs | 65 pub subcommand: Option<Box<SubCommand<'a>>>, field 74 subcommand: None, in default() 323 if let Some(ref sc) = self.subcommand { in is_present() 631 if let Some(ref s) = self.subcommand { in subcommand_matches() 698 self.subcommand.as_ref().map(|sc| &sc.name[..]) in subcommand_name() 748 pub fn subcommand(&self) -> (&str, Option<&ArgMatches<'a>>) { in subcommand() method 749 self.subcommand in subcommand()
|
D | mod.rs | 9 pub use self::subcommand::SubCommand; 21 mod subcommand; module
|
/external/llvm-project/lldb/unittests/API/ |
D | SBCommandInterpreterTest.cpp | 85 DummyCommand subcommand("It worked again"); in TEST_F() local 86 command.AddCommand("subcommand", &subcommand, /*help=*/nullptr); in TEST_F() 102 command.AddCommand("subcommand_with_autorepeat", &subcommand, in TEST_F()
|
/external/llvm-project/lldb/test/API/api/command-return-object/ |
D | main.cpp | 7 static SBCommandReturnObject subcommand(SBDebugger &dbg, const char *cmd) { in subcommand() function 18 result = subcommand(dbg, "help"); in DoExecute()
|
/external/llvm-project/lldb/tools/lldb-server/ |
D | lldb-platform.cpp | 89 static void display_usage(const char *progname, const char *subcommand) { in display_usage() argument 93 progname, subcommand); in display_usage() 143 const char *subcommand = argv[1]; in main_platform() local 267 display_usage(progname, subcommand); in main_platform()
|