@@ -191,12 +191,12 @@ fn complete_dynamic_env_toplevel() {
191
191
192
192
let input = "exhaustive \t \t " ;
193
193
let expected = snapbox:: str![ [ r#"
194
- % exhaustive action
195
- action pacman --generate (generate)
196
- alias quote --global (everywhere)
197
- help (Print this message or the help of the given subcommand(s)) value --help (Print help)
198
- hint -h (Print help) --version (Print version)
199
- last -V (Print version)
194
+ % exhaustive --global
195
+ --global (everywhere) -V (Print version) last
196
+ --generate (generate) action pacman
197
+ -- help (Print help) alias quote
198
+ --version (Print version) help (Print this message or the help of the given subcommand(s)) value
199
+ -h (Print help) hint
200
200
"# ] ] ;
201
201
let actual = runtime. complete ( input, & term) . unwrap ( ) ;
202
202
assert_data_eq ! ( actual, expected) ;
@@ -215,6 +215,18 @@ fn complete_dynamic_env_quoted_help() {
215
215
let input = "exhaustive quote \t \t " ;
216
216
let expected = snapbox:: str![ [ r#"
217
217
% exhaustive quote
218
+ --single-quotes (Can be 'always', 'auto', or 'never')
219
+ --double-quotes (Can be "always", "auto", or "never")
220
+ --backticks (For more information see `echo test`)
221
+ --backslash (Avoid '/n')
222
+ --brackets (List packages [filter])
223
+ --expansions (Execute the shell command with $SHELL)
224
+ --choice
225
+ --global (everywhere)
226
+ --help (Print help (see more with '--help'))
227
+ --version (Print version)
228
+ -h (Print help (see more with '--help'))
229
+ -V (Print version)
218
230
cmd-backslash (Avoid '/n')
219
231
cmd-backticks (For more information see `echo test`)
220
232
cmd-brackets (List packages [filter])
@@ -223,18 +235,6 @@ cmd-expansions (Execute the shell command with $SHELL)
223
235
cmd-single-quotes (Can be 'always', 'auto', or 'never')
224
236
escape-help (/tab "')
225
237
help (Print this message or the help of the given subcommand(s))
226
- -h (Print help (see more with '--help'))
227
- -V (Print version)
228
- --backslash (Avoid '/n')
229
- --backticks (For more information see `echo test`)
230
- --brackets (List packages [filter])
231
- --choice
232
- --double-quotes (Can be "always", "auto", or "never")
233
- --expansions (Execute the shell command with $SHELL)
234
- --global (everywhere)
235
- --help (Print help (see more with '--help'))
236
- --single-quotes (Can be 'always', 'auto', or 'never')
237
- --version (Print version)
238
238
"# ] ] ;
239
239
let actual = runtime. complete ( input, & term) . unwrap ( ) ;
240
240
assert_data_eq ! ( actual, expected) ;
0 commit comments