Home
last modified time | relevance | path

Searched refs:subcommand (Results 1 – 25 of 101) sorted by relevance

12345

/external/autotest/server/
Dsubcommand_unittest.py14 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/
DTestCompletion.py117 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/
Dbenchmark.py95 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/
Dhardware_TPMCheck.py41 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/
Dfish.rs32 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);
Delvish.rs108 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()
Dpowershell.rs139 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/
Dnetpipe.py1 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/
Dnetperf2.py5 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/
Dfirmware_Cr50VirtualNVRam.py14 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/
Dtest_dtrace.py57 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/
Dnested-subcommands.rs17 #[structopt(subcommand)]
33 #[structopt(subcommand)]
108 #[structopt(subcommand)]
116 #[structopt(subcommand)]
147 #[structopt(subcommand)]
151 #[structopt(subcommand)]
Dprivacy.rs16 #[structopt(subcommand)]
17 pub subcommand: super::subcommands::SubCommand, field
Dissues.rs82 #[structopt(subcommand)] in issue_324()
99 #[structopt(subcommand)] in issue_359()
/external/rust/crates/clap/src/
Dsuggestions.rs66 .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/
Dstruct_subcommand.stderr1 error: subcommand is only allowed on fields
4 12 | #[structopt(name = "basic", subcommand)]
Dsubcommand_and_methods.stderr1 error: methods in attributes are not allowed for subcommand
4 17 | #[structopt(subcommand, long)]
Dsubcommand_and_flatten.stderr1 error: subcommand, flatten and skip cannot be used together
4 17 | #[structopt(subcommand, flatten)]
Dskip_subcommand.stderr1 error: subcommand, flatten and skip cannot be used together
4 17 | #[structopt(subcommand, skip)]
Dsubcommand_and_parse.stderr1 error: parse attribute is not allowed for subcommand
4 17 | #[structopt(subcommand, parse(from_occurrences))]
/external/rust/crates/clap/src/args/
Darg_matches.rs65 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()
Dmod.rs9 pub use self::subcommand::SubCommand;
21 mod subcommand; module
/external/llvm-project/lldb/unittests/API/
DSBCommandInterpreterTest.cpp85 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/
Dmain.cpp7 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/
Dlldb-platform.cpp89 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()

12345