
io.github.pepperkit.githooks.GitHooksAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of git-hooks-maven-plugin Show documentation
Show all versions of git-hooks-maven-plugin Show documentation
Maven plugin, which enables control on git hooks via easy configuration.
The newest version!
/*
* Copyright (C) 2021 PepperKit
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.github.pepperkit.githooks;
import java.io.IOException;
/**
* Generalized git hooks manager's action.
*/
@FunctionalInterface
public interface GitHooksAction {
/**
* Applies git hooks action.
* @param hookName name of the hook
* @return true if hook existed, false - otherwise
* @throws IOException if an error occurs on reading or writing the hook
* @throws InterruptedException if the action was interrupted
*/
boolean apply(String hookName) throws IOException, InterruptedException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy