Skip to main content

run_shell_hook

Function run_shell_hook 

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

Runs the shell hook workflow, outputting the wrapper script to stdout.

ยงExample

use git_claw::workflow::shell::{run_shell_hook, ShellHookOptions};

let res = run_shell_hook(ShellHookOptions { shell: "bash" });
assert!(res.is_ok());