Skip to main content

extract

Function extract 

Source
pub fn extract(state: &Path) -> Result<PathBuf, String>
Expand description

Writes the bundled preset to <state>/presets/speccoder-<version>/ (idempotent: files already as bundled are kept) and returns that directory — what specify preset add --dev and specify init --preset are given.

§Errors

The directory cannot be written.