Skip to main content

read_patch

Function read_patch 

Source
pub fn read_patch(
    root: &Path,
    cwd: &Path,
    spec: &str,
    via: Via,
) -> Result<String, String>
Expand description

The patch file spec names, read. From the terminal a path is the person’s to give; through any other interface (web, ACP, MCP) it must be a file inside the project at root.

§Errors

It cannot be read, or it lies outside the project.