mirror of
https://github.com/clap-rs/clap
synced 2024-11-14 00:27:13 +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]
|
#[test]
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
fn register_completion() {
|
fn register_completion() {
|
||||||
if !common::has_command("bash") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
common::register_example("static", "test", completest::Shell::Bash);
|
common::register_example("static", "test", completest::Shell::Bash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,10 +123,6 @@ fn subcommand_last() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
fn register_completion() {
|
fn register_completion() {
|
||||||
if !common::has_command("elvish") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
common::register_example("static", "test", completest::Shell::Elvish);
|
common::register_example("static", "test", completest::Shell::Elvish);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,10 +123,6 @@ fn subcommand_last() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
fn register_completion() {
|
fn register_completion() {
|
||||||
if !common::has_command("fish") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
common::register_example("static", "test", completest::Shell::Fish);
|
common::register_example("static", "test", completest::Shell::Fish);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,10 +123,6 @@ fn subcommand_last() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
fn register_completion() {
|
fn register_completion() {
|
||||||
if !common::has_command("zsh") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
common::register_example("static", "test", completest::Shell::Zsh);
|
common::register_example("static", "test", completest::Shell::Zsh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue