()
| 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"; |
nothing calls this directly
no test coverage detected