Skip to main content

parse_version_answer

Function parse_version_answer 

Source
pub fn parse_version_answer(text: &str) -> Option<DogVersion>
Expand description

Parses the format docs/dogs.md publishes: <name> <version> on line 1, then <key>: <value> lines.

None when there is no line 1. Unknown keys, blank lines, key order and a non-numeric shep-protocol are all tolerated rather than refused; only an exact SHEP_PROTOCOL_KEY carrying a decimal is believed.