Listen to git commits for a specific repo and run a shell command

cargo fmt

vielle.dev 1076eba6 00c06935

verified
+3 -5
+3 -5
src/main.rs
··· 1 fn help() { 2 - println!("tangled-on-commit") 3 } 4 5 #[derive(Debug)] ··· 22 }); 23 } 24 25 - fn main() -> Result<(), i32> { 26 27 // load configuration 28 let config = match load_config() { 29 Ok(res) => res, 30 Err(_) => { 31 // q 32 - return Err(1) 33 } 34 }; 35 - 36 - help(); 37 println!("{:#?}", config); 38 39 // resolve handle to did
··· 1 fn help() { 2 + println!("\n\nHELP: tangled-on-commit\n\n") 3 } 4 5 #[derive(Debug)] ··· 22 }); 23 } 24 25 + fn main() -> Result<(), ()> { 26 27 // load configuration 28 let config = match load_config() { 29 Ok(res) => res, 30 Err(_) => { 31 // q 32 + return Err(()) 33 } 34 }; 35 println!("{:#?}", config); 36 37 // resolve handle to did