Skip to main content

generate_shell_hook

Function generate_shell_hook 

Source
pub fn generate_shell_hook(_shell: &str) -> String
Expand description

Generates the shell hook script for the specified shell.

ยงExample

use git_claw::workflow::shell::generate_shell_hook;

let script = generate_shell_hook("bash");
assert!(script.contains("claw()"));
assert!(script.contains("command git-claw"));