Home
last modified time | relevance | path

Searched refs:Command (Results 1 - 25 of 414) sorted by relevance

12345678910>>...17

/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommands.cpp31 Command type; in FreeCommands()
34 case Command::BeginComputePass: { in FreeCommands()
39 case Command::BeginOcclusionQuery: { in FreeCommands()
44 case Command::BeginRenderPass: { in FreeCommands()
49 case Command::CopyBufferToBuffer: { in FreeCommands()
54 case Command::CopyBufferToTexture: { in FreeCommands()
59 case Command::CopyTextureToBuffer: { in FreeCommands()
64 case Command::CopyTextureToTexture: { in FreeCommands()
70 case Command::Dispatch: { in FreeCommands()
75 case Command in FreeCommands()
[all...]
/third_party/rust/crates/clap/tests/builder/
H A Dsubcommands.rs1 use clap::{arg, error::ErrorKind, Arg, ArgAction, Command};
7 let m = Command::new("test") in subcommand()
9 Command::new("some").arg( in subcommand()
32 let m = Command::new("test") in subcommand_none_given()
34 Command::new("some").arg( in subcommand_none_given()
51 let m = Command::new("test") in subcommand_multiple()
53 Command::new("some").arg( in subcommand_multiple()
60 Command::new("add").arg(Arg::new("roster").short('r')), in subcommand_multiple()
79 let m = Command::new("myprog") in single_alias()
80 .subcommand(Command in single_alias()
[all...]
H A Dflag_subcommands.rs3 use clap::{arg, error::ErrorKind, Arg, ArgAction, Command};
7 let matches = Command::new("test") in flag_subcommand_normal()
9 Command::new("some").short_flag('S').long_flag("some").arg( in flag_subcommand_normal()
28 let matches = Command::new("test") in flag_subcommand_normal_with_alias()
30 Command::new("some") in flag_subcommand_normal_with_alias()
53 let matches = Command::new("test") in flag_subcommand_short()
55 Command::new("some").short_flag('S').arg( in flag_subcommand_short()
74 let matches = Command::new("test") in flag_subcommand_short_with_args()
76 Command::new("some").short_flag('S').arg( in flag_subcommand_short_with_args()
95 let matches = Command in flag_subcommand_short_with_alias()
[all...]
H A Dhelp.rs3 use clap::{arg, builder::PossibleValue, error::ErrorKind, Arg, ArgAction, ArgGroup, Command};
7 fn setup() -> Command { in setup()
8 Command::new("test") in setup()
46 Command::new("test") in help_subcommand()
59 let cmd = Command::new("ctest").subcommand( in help_multi_subcommand_error()
60 Command::new("subcmd").subcommand( in help_multi_subcommand_error()
61 Command::new("multi") in help_multi_subcommand_error()
105 let cmd = Command::new("example") in req_last_arg_usage()
135 let cmd = Command::new("flamegraph") in args_with_last_usage()
250 let cmd = Command in after_and_before_help_output()
[all...]
H A Dapp_settings.rs5 use clap::{arg, error::ErrorKind, Arg, ArgAction, Command};
30 Command::new("sub_command_negate") in sub_command_negate_required()
33 .subcommand(Command::new("sub1")) in sub_command_negate_required()
40 let result = Command::new("sub_command_negate") in sub_command_negate_required_2()
43 .subcommand(Command::new("sub1")) in sub_command_negate_required_2()
52 let result = Command::new("sc_required") in sub_command_required()
54 .subcommand(Command::new("sub1")) in sub_command_required()
73 let cmd = Command::new("sc_required") in sub_command_required_error()
75 .subcommand(Command::new("sub1")); in sub_command_required_error()
81 let result = Command in arg_required_else_help()
[all...]
H A Dpositionals.rs1 use clap::{arg, error::ErrorKind, Arg, ArgAction, Command};
5 let r = Command::new("onlypos") in only_pos_follow()
20 let r = Command::new("compiletest") in issue_946()
42 let r = Command::new("positional") in positional()
59 let m = Command::new("positional") in positional()
78 let r = Command::new("opts") in lots_o_vals()
118 let r = Command::new("positional_multiple") in positional_multiple()
142 let r = Command::new("positional_multiple") in positional_multiple_3()
166 let result = Command::new("positional_multiple") in positional_multiple_2()
176 let r = Command in positional_possible_values()
[all...]
H A Dglobal_args.rs1 use clap::{arg, Arg, ArgAction, Command};
5 let mut cmd = Command::new("myprog") in issue_1076()
21 .subcommand(Command::new("outer").subcommand(Command::new("inner"))); in issue_1076()
29 let m1 = Command::new("foo") in propagate_global_arg_in_subcommand_to_subsubcommand_1385()
31 Command::new("sub1") in propagate_global_arg_in_subcommand_to_subsubcommand_1385()
38 .subcommand(Command::new("sub1a")), in propagate_global_arg_in_subcommand_to_subsubcommand_1385()
56 let m = Command::new("opts") in propagate_global_arg_to_subcommand_in_subsubcommand_2053()
60 Command::new("test") in propagate_global_arg_to_subcommand_in_subsubcommand_2053()
63 .subcommand(Command in propagate_global_arg_to_subcommand_in_subsubcommand_2053()
[all...]
H A Ddefault_vals.rs7 use clap::{arg, value_parser, Arg, ArgAction, Command};
14 let r = Command::new("df") in opts()
32 let r = Command::new("df") in default_has_index()
43 let r = Command::new("df") in opt_without_value_fail()
60 let r = Command::new("df") in opt_user_override()
78 let r = Command::new("df") in positionals()
96 let r = Command::new("df") in positional_user_override()
119 let r = Command::new("df") in osstr_opts()
136 let r = Command::new("df") in osstr_opt_user_override()
153 let r = Command in osstr_positionals()
[all...]
H A Drequire.rs2 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgGroup, Command};
9 let result = Command::new("flag_required") in flag_required()
20 let m = Command::new("flag_required") in flag_required_2()
35 let result = Command::new("option_required") in option_required()
46 let m = Command::new("option_required") in option_required_2()
62 let result = Command::new("positional_required") in positional_required()
72 let m = Command::new("positional_required") in positional_required_2()
96 let cmd = Command::new("positional_required") in positional_required_with_requires()
116 let cmd = Command::new("positional_required") in positional_required_with_requires_if_no_value()
137 let cmd = Command in positional_required_with_requires_if_value()
[all...]
H A Dconflicts.rs1 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgGroup, Command};
8 let result = Command::new("flag_conflict") in flag_conflict()
19 let result = Command::new("flag_conflict") in flag_conflict_2()
30 let result = Command::new("flag_conflict") in flag_conflict_with_all()
41 let cmd = Command::new("flag_conflict") in exclusive_flag()
55 let result = Command::new("flag_conflict") in exclusive_option()
66 let result = Command::new("flag_conflict") in not_exclusive_with_defaults()
79 let cmd = Command::new("test") in not_exclusive_with_group()
93 let result = Command::new("flag_conflict") in default_doesnt_activate_exclusive()
106 let mut cmd = Command in arg_conflicts_with_group()
[all...]
H A Dmultiple_values.rs1 use clap::{error::ErrorKind, Arg, ArgAction, Command};
5 let m = Command::new("multiple_values") in option_long()
33 let m = Command::new("multiple_values") in option_short()
59 let m = Command::new("multiple_values") in option_mixed()
88 let m = Command::new("multiple_values") in option_exact_exact()
115 let m = Command::new("multiple_values") in option_exact_exact_not_mult()
139 let m = Command::new("multiple_values") in option_exact_exact_mult()
166 let m = Command::new("multiple_values") in option_exact_less()
182 let m = Command::new("multiple_values") in option_exact_more()
200 let m = Command in option_min_exact()
[all...]
H A Dgroups.rs1 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgGroup, Command, Id};
7 let result = Command::new("group") in required_group_missing_arg()
19 #[should_panic = "Command group: Argument group 'req' contains non-existent argument"]
21 let _ = Command::new("group") in non_existing_arg()
30 #[should_panic = "Command group: Argument group name must be unique\n\n\t'req' is already in use"]
32 let _ = Command::new("group") in unique_group_name()
42 #[should_panic = "Command group: Argument group name 'a' must not conflict with argument name"]
44 let _ = Command::new("group") in groups_new_of_arg_name()
51 #[should_panic = "Command group: Argument group name 'a' must not conflict with argument name"]
53 let _ = Command in arg_group_new_of_arg_name()
[all...]
H A Dpossible_values.rs1 use clap::{builder::PossibleValue, error::ErrorKind, Arg, ArgAction, Command};
8 let m = Command::new("possible_values") in possible_values_of_positional()
24 let m = Command::new("possible_values") in possible_value_arg_value()
46 let m = Command::new("possible_values") in possible_values_of_positional_fail()
56 let m = Command::new("possible_values") in possible_values_of_positional_multiple()
81 let m = Command::new("possible_values") in possible_values_of_positional_multiple_fail()
97 let m = Command::new("possible_values") in possible_values_of_option()
119 let m = Command::new("possible_values") in possible_values_of_option_fail()
135 let m = Command::new("possible_values") in possible_values_of_option_multiple()
161 let m = Command in possible_values_of_option_multiple_fail()
[all...]
H A Dhidden_args.rs3 use clap::{arg, builder::PossibleValue, Arg, ArgAction, Command};
19 let cmd = Command::new("test") in hide_args()
46 let cmd = Command::new("test") in hide_short_args()
89 let cmd = Command::new("test") in hide_short_args_long_help()
128 let cmd = Command::new("test") in hide_long_args()
163 let cmd = Command::new("test") in hide_long_args_short_help()
197 let cmd = Command::new("test").version("1.4").args([ in hide_pos_args()
215 let cmd = Command::new("test") in hide_subcmds()
217 .subcommand(Command::new("sub").hide(true)); in hide_subcmds()
230 let cmd = Command in hide_opt_args_only()
[all...]
/third_party/rust/crates/clap/clap_bench/benches/
H A D06_rustup.rs5 use clap::{Arg, ArgAction, ArgGroup, Command};
24 fn build_cli() -> Command { in build_cli()
25 Command::new("rustup") in build_cli()
37 Command::new("show") in build_cli()
42 Command::new("install") in build_cli()
49 Command::new("update") in build_cli()
62 Command::new("default") in build_cli()
68 Command::new("toolchain") in build_cli()
71 .subcommand(Command::new("list").about("List installed toolchains")) in build_cli()
73 Command in build_cli()
[all...]
H A D04_new_help.rs1 use clap::Command;
5 fn build_help(cmd: &mut Command) -> String { in build_help()
10 fn app_example1() -> Command { in app_example1()
11 Command::new("MyApp") in app_example1()
24 Command::new("test") in app_example1()
30 fn app_example2() -> Command { in app_example2()
31 Command::new("MyApp") in app_example2()
37 fn app_example3() -> Command { in app_example3()
38 Command::new("MyApp") in app_example3()
65 fn app_example4() -> Command { in app_example4()
[all...]
/third_party/vk-gl-cts/external/amber/src/src/
H A Dcommand.cc21 Command::Command(Type type) : command_type_(type) {} in Command() function in amber::Command
23 Command::~Command() = default;
25 ClearCommand* Command::AsClear() { in AsClear()
29 ClearColorCommand* Command::AsClearColor() { in AsClearColor()
33 ClearDepthCommand* Command::AsClearDepth() { in AsClearDepth()
37 ClearStencilCommand* Command::AsClearStencil() { in AsClearStencil()
41 CompareBufferCommand* Command::AsCompareBuffer() { in AsCompareBuffer()
45 ComputeCommand* Command
[all...]
/third_party/rust/crates/clap/clap_complete/tests/
H A Dcommon.rs3 pub fn basic_command(name: &'static str) -> clap::Command { in basic_command()
4 clap::Command::new(name) in basic_command()
18 clap::Command::new("test").about("Subcommand").arg( in basic_command()
26 pub fn feature_sample_command(name: &'static str) -> clap::Command { in basic_command()
27 clap::Command::new(name) in basic_command()
47 clap::Command::new("test").about("tests things").arg( in basic_command()
56 pub fn special_commands_command(name: &'static str) -> clap::Command { in basic_command()
59 clap::Command::new("some_cmd") in basic_command()
71 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen")) in basic_command()
72 .subcommand(clap::Command in basic_command()
[all...]
/third_party/rust/crates/clap/clap_mangen/tests/
H A Dcommon.rs3 pub fn basic_command(name: &'static str) -> clap::Command { in basic_command()
4 clap::Command::new(name) in basic_command()
18 clap::Command::new("test").about("Subcommand").arg( in basic_command()
26 pub fn feature_sample_command(name: &'static str) -> clap::Command { in basic_command()
27 clap::Command::new(name) in basic_command()
47 clap::Command::new("test").about("tests things").arg( in basic_command()
56 pub fn special_commands_command(name: &'static str) -> clap::Command { in basic_command()
59 clap::Command::new("some_cmd") in basic_command()
68 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen")) in basic_command()
71 pub fn quoting_command(name: &'static str) -> clap::Command { in basic_command()
[all...]
/third_party/rust/crates/clap/clap_complete_fig/tests/
H A Dcommon.rs1 pub fn basic_command(name: &'static str) -> clap::Command { in basic_command()
2 clap::Command::new(name) in basic_command()
16 clap::Command::new("test").about("Subcommand").arg( in basic_command()
24 pub fn feature_sample_command(name: &'static str) -> clap::Command { in basic_command()
25 clap::Command::new(name) in basic_command()
45 clap::Command::new("test").about("tests things").arg( in basic_command()
54 pub fn special_commands_command(name: &'static str) -> clap::Command { in basic_command()
57 clap::Command::new("some_cmd") in basic_command()
69 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen")) in basic_command()
70 .subcommand(clap::Command in basic_command()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/
H A DCommandBufferEncodingTests.cpp25 std::vector<std::pair<dawn_native::Command, in ExpectCommands()
28 dawn_native::Command commandId; in ExpectCommands()
217 {Command::BeginComputePass, in TEST_F()
218 [&](CommandIterator* commands) { SkipCommand(commands, Command::BeginComputePass); }}, in TEST_F()
220 {Command::SetComputePipeline, ExpectSetPipeline(pipeline0)}, in TEST_F()
221 {Command::SetBindGroup, ExpectSetBindGroup(0, staticBG)}, in TEST_F()
222 {Command::SetBindGroup, ExpectSetBindGroup(1, dynamicBG, {dynamicOffset})}, in TEST_F()
225 {Command::SetComputePipeline, ExpectSetValidationPipeline}, in TEST_F()
226 {Command::SetBindGroup, ExpectSetValidationBindGroup}, in TEST_F()
227 {Command in TEST_F()
[all...]
/third_party/skia/third_party/externals/tint/src/utils/io/
H A Dcommand_other.cc20 Command::Command(const std::string&) {} in Command() function in tint::utils::Command
22 Command Command::LookPath(const std::string&) { in LookPath()
23 return Command(""); in LookPath()
26 bool Command::Found() const { in Found()
30 Command::Output Command::Exec(std::initializer_list<std::string>) const { in Exec()
32 out.err = "Command not supported by this target"; in Exec()
/third_party/skia/tools/sk_app/
H A DCommandSet.cpp39 for (Command& cmd : fCommands) { in onKey()
40 if (Command::kKey_CommandType == cmd.fType && key == cmd.fKey) { in onKey()
51 for (Command& cmd : fCommands) { in onChar()
52 if (Command::kChar_CommandType == cmd.fType && c == cmd.fChar) { in onChar()
62 for (const Command& cmd : fCommands) { in onSoftkey()
73 fCommands.push_back(Command(c, group, description, function)); in addCommand()
78 fCommands.push_back(Command(k, keyName, group, description, function)); in addCommand()
87 bool CommandSet::compareCommandKey(const Command& first, const Command& second) { in compareCommandKey()
91 bool CommandSet::compareCommandGroup(const Command
[all...]
/third_party/rust/crates/clap/src/
H A Dderive.rs5 use crate::{ArgMatches, Command, Error};
12 /// [`Command`], conduct the parsing, and turn the resulting [`ArgMatches`] back
48 /// The equivalent [`Command`] struct + `From` implementation:
51 /// # use clap::{Command, Arg, ArgMatches, ArgAction};
52 /// Command::new("demo")
159 /// Create a [`Command`] relevant for a user-defined container.
163 /// Build a [`Command`] that can instantiate `Self`.
166 fn command() -> Command; in command()
167 /// Build a [`Command`] that can update `self`.
170 fn command_for_update() -> Command; in command_for_update()
[all...]
/third_party/rust/crates/clap/src/builder/
H A Dtests.rs2 use crate::Command;
6 let mut cmd = Command::new("test") in propagate_version()
9 .subcommand(Command::new("sub1")); in propagate_version()
19 let mut cmd = Command::new("test") in global_setting()
21 .subcommand(Command::new("subcmd")); in global_setting()
30 // This test will *fail to compile* if Command is not Send + Sync
34 foo(Command::new("test")) in app_send_sync()
39 let mut cmd = Command::new("cmd") in issue_2090()
41 .subcommand(Command::new("sub")); in issue_2090()

Completed in 10 milliseconds

12345678910>>...17