Skip to main content

parse_script_description

Function parse_script_description 

Source
pub fn parse_script_description(content: &[u8]) -> Vec<String>
Expand description

Parse the leading comment block from a shell script, skipping the shebang line and any shine-dest: annotation line.

Collects consecutive lines starting with # or bare # until the first non-comment, non-shebang line. Trailing empty description lines are trimmed.