pub fn parse_layout(stdout: &[u8]) -> Result<LandingLocation, String>Expand description
What: Split the layout output into its two fixed lines, refusing any other shape. Why: A missing line would point the lock at the wrong directory.
In TS you’d write (pseudocode):
const [gitDir, indexPath] = stdout.split('\n'); if (!indexPath) throw new TypeError(...);