MCPcopy Index your code
hub / github.com/Dathin/JHusky

github.com/Dathin/JHusky @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
22 symbols 38 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

JHusky

Modern native Git hooks made easy for java environments

JHusky improves your commits and more 🐶 Jwoof!

Install

Include it to your project as a plugin

    <build>
        <plugins>

            <plugin>
                <groupId>io.github.dathin</groupId>
                <artifactId>jhusky</artifactId>
                <version>1.0.9</version> 
            </plugin>

        </plugins>

    </build>

Usage

Run install goal once per machine:

mvn jhusky:install -Ddirectory=.husky

Add a hook:

mvn jhusky:add -DhookPath=.husky/pre-commit -Dcommand="mvn clean test"
git add .husky/pre-commit

Make a commit:

git commit -m "Keep calm and commit"
# `mvn clean test` will run

Hooks list

  • Check the list with all hooks

Uninstall

If you didn't like it you can just run uninstall goal and remove the plugin

mvn jhusky:uninstall -Ddirectory=.husky

Inspiration

JHusky is a Java version based on Husky for those who don't want/can't use node to setup git hooks in an intuitive and easy way

Core symbols most depended-on inside this repo

runAndHandleProcess
called by 3
src/main/java/io/github/dathin/jhusky/ProcessUtils.java
prepareEnvironment
called by 1
src/main/java/io/github/dathin/jhusky/Install.java
installHuskyFiles
called by 1
src/main/java/io/github/dathin/jhusky/Install.java
checkParentDirectoryExists
called by 1
src/main/java/io/github/dathin/jhusky/Add.java
createCommand
called by 1
src/main/java/io/github/dathin/jhusky/Add.java
command
called by 1
src/main/java/io/github/dathin/jhusky/HuskyCommand.java
getCommandName
called by 1
src/main/java/io/github/dathin/jhusky/HuskyCommand.java
Install
called by 0
src/main/java/io/github/dathin/jhusky/Install.java

Shape

Method 17
Class 5

Languages

Java100%

Modules by API surface

src/main/java/io/github/dathin/jhusky/Install.java6 symbols
src/main/java/io/github/dathin/jhusky/Add.java5 symbols
src/main/java/io/github/dathin/jhusky/Uninstall.java4 symbols
src/main/java/io/github/dathin/jhusky/HuskyCommand.java4 symbols
src/main/java/io/github/dathin/jhusky/ProcessUtils.java3 symbols

For agents

$ claude mcp add JHusky \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact