diff --git a/src/commands/add.rs b/src/commands/add.rs index db1c6ca..e353494 100644 --- a/src/commands/add.rs +++ b/src/commands/add.rs @@ -41,10 +41,15 @@ pub fn husky() -> Result<()> { node::install_dev("husky pretty-quick"); - template::render_file(include_str!("../templates/.huskyrc"), ".huskyrc", None)?; - spinner.success("Husky setup complete"); + println!( + " +* {cmd} - Initialize husky + ", + cmd = "npx husky-init".blue(), + ); + Ok(()) } diff --git a/src/templates/.huskyrc b/src/templates/.huskyrc deleted file mode 100644 index 1cbd863..0000000 --- a/src/templates/.huskyrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "hooks": { - "pre-commit": "pretty-quick --staged" - } -} -