Skip to main content

init_config

Function init_config 

Source
pub fn init_config(
    output: Option<&Path>,
    force: bool,
) -> Result<PathBuf, ForgeError>
Expand description

Write the embedded default configuration into the current directory.

ยงErrors

Returns ForgeError when the working directory is unavailable, the target already exists without force, or the file cannot be written.