pub fn parse_layout(stdout: &[u8]) -> Result<LandingLocation, String>Expand description
What: Split the layout output into its three 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, registryRoot] = stdout.split('\n'); if (!registryRoot) throw new TypeError(...);