Skip to main content

rows

Function rows 

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

The rows a pack may contribute, verbatim, or a refusal naming the first thing wrong with it.

Validated with the REAL parser (crate::manifest::parse_lines) rather than a second one that could disagree with it — a pack that parses here and not there would be a manifest nobody intended. The original text of each row is what gets written, so nothing round-trips through a formatter that might render it differently from how it was reviewed.

Refused whole, never partially: a half-applied pack leaves an amont.conf that neither the author nor the user asked for.