mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
test(complete): Only limit by command when needed
This commit is contained in:
parent
fa95531230
commit
dac33b686b
4 changed files with 0 additions and 16 deletions
|
@ -141,10 +141,6 @@ fn subcommand_last() {
|
|||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn register_completion() {
|
||||
if !common::has_command("bash") {
|
||||
return;
|
||||
}
|
||||
|
||||
common::register_example("static", "test", completest::Shell::Bash);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,10 +123,6 @@ fn subcommand_last() {
|
|||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn register_completion() {
|
||||
if !common::has_command("elvish") {
|
||||
return;
|
||||
}
|
||||
|
||||
common::register_example("static", "test", completest::Shell::Elvish);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,10 +123,6 @@ fn subcommand_last() {
|
|||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn register_completion() {
|
||||
if !common::has_command("fish") {
|
||||
return;
|
||||
}
|
||||
|
||||
common::register_example("static", "test", completest::Shell::Fish);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,10 +123,6 @@ fn subcommand_last() {
|
|||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn register_completion() {
|
||||
if !common::has_command("zsh") {
|
||||
return;
|
||||
}
|
||||
|
||||
common::register_example("static", "test", completest::Shell::Zsh);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue