Skip to main content

run_init_workflow

Function run_init_workflow 

Source
pub fn run_init_workflow(
    options: InitOptions<'_>,
) -> Result<PathBuf, WorkflowError>
Expand description

Runs the repository initialization workflow.

ยงExample

use git_claw::workflow::init::{run_init_workflow, InitOptions};
use tempfile::tempdir;

let dir = tempdir().unwrap();
let opts = InitOptions { yes: true, repo_root: Some(dir.path()) };
let _ = run_init_workflow(opts);