Lines Matching refs:Command

3 pub fn basic_command(name: &'static str) -> clap::Command {
4 clap::Command::new(name)
18 clap::Command::new("test").about("Subcommand").arg(
26 pub fn feature_sample_command(name: &'static str) -> clap::Command {
27 clap::Command::new(name)
47 clap::Command::new("test").about("tests things").arg(
56 pub fn special_commands_command(name: &'static str) -> clap::Command {
59 clap::Command::new("some_cmd")
68 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen"))
71 pub fn quoting_command(name: &'static str) -> clap::Command {
72 clap::Command::new(name)
111 clap::Command::new("cmd-single-quotes").about("Can be 'always', 'auto', or 'never'"),
112 clap::Command::new("cmd-double-quotes")
114 clap::Command::new("cmd-backticks").about("For more information see `echo test`"),
115 clap::Command::new("cmd-backslash").about("Avoid '\\n'"),
116 clap::Command::new("cmd-brackets").about("List packages [filter]"),
117 clap::Command::new("cmd-expansions").about("Execute the shell command with $SHELL"),
121 pub fn aliases_command(name: &'static str) -> clap::Command {
122 clap::Command::new(name)
146 pub fn sub_subcommands_command(name: &'static str) -> clap::Command {
148 clap::Command::new("some_cmd")
151 clap::Command::new("sub_cmd").about("sub-subcommand").arg(
164 pub fn value_hint_command(name: &'static str) -> clap::Command {
165 clap::Command::new(name)
248 pub fn hidden_option_command(name: &'static str) -> clap::Command {
249 clap::Command::new(name)
263 pub fn env_value_command(name: &'static str) -> clap::Command {
264 clap::Command::new(name).arg(
275 pub fn assert_matches_path(expected_path: impl AsRef<std::path::Path>, cmd: clap::Command) {
284 pub fn possible_values_command(name: &'static str) -> clap::Command {
285 clap::Command::new(name)
316 pub fn value_name_without_arg(name: &'static str) -> clap::Command {
317 clap::Command::new(name).arg(