Skip to main content

load

Function load 

pub fn load(path: Option<&Path>) -> Result<TeamMap>
Expand description

Load a team-map from disk. Returns an empty map if path is None; callers can then call apply unconditionally without branching.

§Errors

Returns CodeLoreError::MalformedTeamMap for parse problems and CodeLoreError::RepoIo for I/O failures (the user pointed --team-map FILE at something unreadable — same exit-code bucket as “the repo path didn’t exist”, not as “the output pipe broke”).