Skip to main content

scope_for_cwd

Function scope_for_cwd 

Source
pub fn scope_for_cwd(workspace: &Path, cwd: &Path) -> Option<String>
Expand description

If cwd sits under a SubBrain root of workspace, return that scope id.

Returns None for single mode, workspace root CWD, or paths that only match MainBrain.