From da85aa7dfa9bb96caf69a7494aec6cf6413fb023 Mon Sep 17 00:00:00 2001 From: Mezdelex Date: Wed, 13 Nov 2024 23:58:36 +0100 Subject: [PATCH] chore(husky): added the actual pre-commit hook to run csharpier on each --- .husky/pre-commit | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..fd85d23 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,22 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +## husky task runner examples ------------------- +## Note : for local installation use 'dotnet' prefix. e.g. 'dotnet husky' + +## run all tasks +#husky run + +### run all tasks with group: 'group-name' +#husky run --group group-name + +## run task with name: 'task-name' +#husky run --name task-name + +## pass hook arguments to task +#husky run --args "$1" "$2" + +## or put your custom commands ------------------- +#echo 'Husky.Net is awesome!' + +dotnet husky run