# Packages
Package config provides functionality for getting and setting HkUp config settings.
Package template provides functionality for creating and copying git hook templates
This package utilizes the cobra library for command-line interaction and is
implemented in the respective commands of the
[github.com/iton0/hkup-cli/cmd/template] package.
# Functions
Add creates a new Git hook with the specified git hook name and optional programming language in the designated .hkup directory.
Doc opens the documentation for a specified Git hook in the default web browser.
Init sets the .hkup directory for storing Git hooks in the current repository.
List displays a list of one of the below based on provided argument: - Supported git hooks - Supported languages - User-defined git hook templates - Configuration settings - Git hook(s) used in the current working directory (if no arg provided)
Returns error if issue with checking directories.
Remove deletes a specified Git hook from the .hkup directory.
Root wraps git-related clone commands for easier initialization of HkUp.
# Variables
ForceFlg is an optional flag which will override the local hooksPath variable if it is already set.
GitDirFlg is an optional flag that defines the location of the git directory.
LangFlg is an optional flag indicating the programming language to use for the hook script.
WorkTreeFlg is an optional flag that defines the location of the working tree of a local git repository.