Skip to content

Commit b250c0b

Browse files
authored
Merge pull request #5310 from epage/pty
chore(complete): Update completest-pty
2 parents f524d84 + c742b8e commit b250c0b

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clap_complete/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ snapbox = { version = "0.4.15", features = ["diff", "path", "examples"] }
4646
# Cutting out `filesystem` feature
4747
trycmd = { version = "0.14.19", default-features = false, features = ["color-auto", "diff", "examples"] }
4848
completest = "0.4.0"
49-
completest-pty = "0.4.0"
49+
completest-pty = "0.5.0"
5050
clap = { path = "../", version = "4.0.0", default-features = false, features = ["std", "derive", "help"] }
5151

5252
[[example]]

clap_complete/tests/testsuite/bash.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ fn complete() {
156156
common::load_runtime::<completest_pty::BashRuntimeBuilder>("static", "exhaustive");
157157

158158
let input = "exhaustive \t\t";
159-
let expected = r#"%
160-
-h --global --help action value last hint help
161-
-V --generate --version quote pacman alias complete"#;
159+
let expected = r#"%
160+
-h --global --help action value last hint help
161+
-V --generate --version quote pacman alias complete "#;
162162
let actual = runtime.complete(input, &term).unwrap();
163163
snapbox::assert_eq(expected, actual);
164164
}

clap_complete/tests/testsuite/elvish.rs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,22 @@ fn complete() {
139139

140140
let input = "exhaustive \t";
141141
let expected = r#"% exhaustive --generate
142-
--generate generate
143-
--global everywhere
144-
--help Print help
145-
--version Print version
146-
-V Print version
147-
-h Print help
148-
action action
149-
alias alias
150-
complete Register shell completions for this program
142+
COMPLETING argument
143+
--generate generate
144+
--global everywhere
145+
--help Print help
146+
--version Print version
147+
-V Print version
148+
-h Print help
149+
action action
150+
alias alias
151+
complete Register shell completions for this program
151152
help Print this message or the help of the given subcommand(s)
152-
hint hint
153-
last last
154-
pacman pacman
155-
quote quote
156-
value value"#;
153+
hint hint
154+
last last
155+
pacman pacman
156+
quote quote
157+
value value "#;
157158
let actual = runtime.complete(input, &term).unwrap();
158159
snapbox::assert_eq(expected, actual);
159160
}

clap_complete/tests/testsuite/fish.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ fn complete() {
138138
common::load_runtime::<completest_pty::FishRuntimeBuilder>("static", "exhaustive");
139139

140140
let input = "exhaustive \t";
141-
let expected = r#"% exhaustive
141+
let expected = r#"% exhaustive
142142
action complete (Register shell completions for this program) hint pacman value
143-
alias help (Print this message or the help of the given subcommand(s)) last quote"#;
143+
alias help (Print this message or the help of the given subcommand(s)) last quote "#;
144144
let actual = runtime.complete(input, &term).unwrap();
145145
snapbox::assert_eq(expected, actual);
146146

147147
let input = "exhaustive quote --choice \t";
148148
let actual = runtime.complete(input, &term).unwrap();
149-
let expected = r#"% exhaustive quote --choice
149+
let expected = r#"% exhaustive quote --choice
150150
bash (bash (shell)) fish (fish shell) zsh (zsh shell)"#;
151151
snapbox::assert_eq(expected, actual);
152152
}

clap_complete/tests/testsuite/zsh.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ fn complete() {
139139

140140
let input = "exhaustive \t";
141141
let expected = r#"% exhaustive
142-
complete -- Register shell completions for this program
143-
help -- Print this message or the help of the given subcommand(s)
144-
pacman action alias value quote hint last --"#;
142+
complete -- Register shell completions for this program
143+
help -- Print this message or the help of the given subcommand(s)
144+
pacman action alias value quote hint last -- "#;
145145
let actual = runtime.complete(input, &term).unwrap();
146146
snapbox::assert_eq(expected, actual);
147147
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy