@@ -192,8 +192,12 @@ fn complete_dynamic_env_toplevel() {
192192 let input = "exhaustive \t \t " ;
193193 let expected = snapbox:: str![ [ r#"
194194% exhaustive
195- --generate --help action help last quote
196- --global --version alias hint pacman value
195+ --generate -- generate
196+ --global -- everywhere
197+ --help -- Print help
198+ --version -- Print version
199+ help -- Print this message or the help of the given subcommand(s)
200+ action alias hint last pacman quote value
197201"# ] ] ;
198202 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
199203 assert_data_eq ! ( actual, expected) ;
@@ -213,9 +217,18 @@ fn complete_dynamic_env_quoted_help() {
213217 let input = "exhaustive quote \t \t " ;
214218 let expected = snapbox:: str![ [ r#"
215219% exhaustive quote
216- --backslash --choice --global --version cmd-brackets cmd-single-quotes
217- --backticks --double-quotes --help cmd-backslash cmd-double-quotes escape-help
218- --brackets --expansions --single-quotes cmd-backticks cmd-expansions help
220+ --global -- everywhere
221+ --help -- Print help (see more with '--help')
222+ --version -- Print version
223+ cmd-backslash --backslash -- Avoid '/n'
224+ cmd-backticks --backticks -- For more information see `echo test`
225+ cmd-brackets --brackets -- List packages [filter]
226+ cmd-double-quotes --double-quotes -- Can be "always", "auto", or "never"
227+ cmd-expansions --expansions -- Execute the shell command with $SHELL
228+ cmd-single-quotes --single-quotes -- Can be 'always', 'auto', or 'never'
229+ escape-help -- /tab/t"'
230+ help -- Print this message or the help of the given subcommand(s)
231+ --choice
219232"# ] ] ;
220233 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
221234 assert_data_eq ! ( actual, expected) ;
@@ -260,7 +273,10 @@ fn complete_dynamic_env_quoted_value() {
260273 let input = "exhaustive quote --choice \t \t " ;
261274 let expected = snapbox:: str![ [ r#"
262275% exhaustive quote --choice
263- another/ shell bash fish zsh
276+ another shell -- something with a space
277+ bash -- bash (shell)
278+ fish -- fish shell
279+ zsh -- zsh shell
264280"# ] ] ;
265281 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
266282 assert_data_eq ! ( actual, expected) ;
0 commit comments