MCPcopy Create free account
hub / github.com/Dathin/JHusky / command

Method command

src/main/java/io/github/dathin/jhusky/Install.java:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 @Override
31 public void command() throws MojoExecutionException, IOException, InterruptedException {
32 processUtils.runAndHandleProcess(directory, "git", "rev-parse");
33
34 prepareEnvironment(directory);
35
36 installHuskyFiles(directory);
37
38 processUtils.runAndHandleProcess(directory, "git", "config", "core.hooksPath", directory);
39
40 getLog().info("Git hooks installed");
41 }
42
43 private void prepareEnvironment(String directory) throws MojoExecutionException, IOException {
44 String customDirHelpUrl = "https://git.io/Jc3F9";

Callers

nothing calls this directly

Calls 3

prepareEnvironmentMethod · 0.95
installHuskyFilesMethod · 0.95
runAndHandleProcessMethod · 0.80

Tested by

no test coverage detected