From b29d9bb57f4cfc113f0a24f99ee963b4f99785ba Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 24 Jun 2019 11:50:27 +0200 Subject: [PATCH] comments --- src/installer/bin.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/installer/bin.ts b/src/installer/bin.ts index 7ddc66ff1..97664ad7a 100644 --- a/src/installer/bin.ts +++ b/src/installer/bin.ts @@ -14,13 +14,16 @@ const [, , action, huskyDir = path.join(__dirname, '../..')] = process.argv // Find Git dir try { + // Show un/install message console.log( 'husky > %s git hooks', action === 'install' ? 'Setting up' : 'Uninstalling' ) + // Get top level and git dir const { topLevel, gitDir } = gitRevParse() + // Install or uninstall if (action === 'install') { install(topLevel, gitDir, huskyDir, isCI) } else {