Skip to main content

workspace_slug

Function workspace_slug 

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

Extract workspace/project name from a path.

Returns the last path component as a slug, or “standalone” if no workspace.