Splits a shell command line into words, honoring single/double quotes and backslash escapes. Shared with `tool_hints` so search-command classification sees the same tokens as the checkout/sync parsing here.
(command: &str)
| 209 | /// backslash escapes. Shared with `tool_hints` so search-command |
| 210 | /// classification sees the same tokens as the checkout/sync parsing here. |
| 211 | pub(crate) fn shell_words(command: &str) -> Vec<String> { |
| 212 | shell_words_for_platform(command, cfg!(windows)) |
| 213 | } |
| 214 | |
| 215 | fn shell_words_for_platform(command: &str, windows: bool) -> Vec<String> { |
| 216 | let mut words = Vec::new(); |
no test coverage detected