Skip to main content

run

Function run 

Source
pub fn run(cwd: &Path, dir: Option<&Path>, force: bool) -> Result<()>
Expand description

Scaffold a standalone image project in dir (relative to cwd, or cwd itself when dir is None). The project name – used as the image.ref and in the README’s consuming config – is the target directory’s basename.

Refuses to clobber any of the three generated files unless force is set; the existence probe runs before any write so a re-run reports the conflict without leaving a half-written project.