Skip to main content

parse_shell_commands

Function parse_shell_commands 

Source
pub fn parse_shell_commands(script: &str) -> Result<Vec<Vec<String>>, String>
Expand description

Parse a shell script into command/argument lists.

If tree-sitter parsing fails, falls back to simple tokenization.