Skip to content

How can I use Husky on Windows and Mac? #62

Answered by alirezanet
ntulip-qpac asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @KienMonoMono,
are you passing the arg correctly?

commit-msg

dotnet husky run --name "commit-message-linter" --args "$1"

task-runner.json

   "tasks": [
      {
         "name": "commit-message-linter",
         "command": "dotnet",
         "args": ["husky", "exec", ".husky/csx/commit-lint.csx", "--args", "${args}"]
      },
...

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@KienMonoMono
Comment options

@KienMonoMono
Comment options

@KienMonoMono
Comment options

@alirezanet
Comment options

Answer selected by alirezanet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants