Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence successful output #110

Open
IlyaSemenov opened this issue Apr 19, 2024 · 1 comment
Open

Silence successful output #110

IlyaSemenov opened this issue Apr 19, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@IlyaSemenov
Copy link
Contributor

I use simple-git-hooks as the package prepare script:

{
  "scripts": {
    "prepare": "simple-git-hooks"
  },
  "simple-git-hooks": {
    "pre-commit": "npx lint-staged"
  }
}

Every time I run pnpm i, it prints the two redundant lines:

[INFO] Successfully set the pre-commit with command: npx lint-staged
[INFO] Successfully set all git hooks

I propose to silence this output (always — or better yet — when nothing has changed), same as husky doesn't print anything when it simply succeeds. Or at least add a CLI flag such as simple-git-hooks --silent.

@toplenboren
Copy link
Owner

toplenboren commented Apr 21, 2024

Hi! Glad to see that you use this project!

I agree with you :-)

I want to add a --silent option to v2.*.* and completely make simple-git-hooks silent in next major version (along with few other changes..)

@toplenboren toplenboren added enhancement New feature or request good first issue Good for newcomers labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants