Skip to main content

resolve_project

Function resolve_project 

Source
pub fn resolve_project(
    layout: &Layout,
    explicit: Option<&str>,
) -> Result<String>
Expand description

Resolve the project to act on. An explicit name wins; otherwise walk up from the current directory for .project-ctx.toml and read [project].name. Neither available is an error, so nothing is ever guessed silently.

ยงErrors

Returns an error if the explicit project name is empty, no name can be resolved, the current directory cannot be read, or the name matches more than one project directory.