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

Method command

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

Source from the content-addressed store, hash-verified

22 private String command;
23
24 @Override
25 public void command() throws MojoExecutionException, IOException {
26 Path commandPath = Paths.get(hookPath);
27
28 checkParentDirectoryExists(commandPath);
29 createCommand(commandPath, command);
30 }
31
32 private void checkParentDirectoryExists(Path huskyCommandPath) throws MojoExecutionException {
33 if (!Files.exists(huskyCommandPath.getParent())) {

Callers

nothing calls this directly

Calls 2

createCommandMethod · 0.95

Tested by

no test coverage detected