Skip to main content

open_worktree

Function open_worktree 

Source
pub fn open_worktree(options: OpenOptions<'_>) -> Result<(), WorkflowError>
Expand description

Launches the configured editor targeting the worktree directory.

:param options: Editor launch options. :return: Unit result on success, or WorkflowError on failure.

ยงExample

use git_claw::workflow::{open_worktree, OpenOptions};

let res = open_worktree(OpenOptions {
    name: Some("main"),
    editor: Some("true"),
    repo_root: None,
});