package
2.4.4+incompatible
Repository: https://github.com/devops-kung-fu/hookz.git
Documentation: pkg.go.dev

# Functions

CreateConfig creates a starter .hookz.yaml file.
CreateScriptFile creates an executable script file with a random name given a string of content.
DownloadFile will download a url to a local file.
HasExistingHookz determines if any .hookz touch files exist in the .git/hooks directory.
HasExistingHookzYaml returns true if an existing .hookz.yaml file exists.
InstallSource installs a go repository that is found in the Sources section of the .hookz.yaml file.
ReadConfig method reads a file named .hookz.yaml from the filesystem using the provided Afero interface.
TODO: Fix code coverage RemoveHooks removes hooks with a specific extension and their corresponding files in the Git hooks directory.
UpdateExecutables parses the configuration for URL's and re-downloads the contents into the .git/hooks folder.
ValidateVersion ensures that the configuration that is read matches the hookz binary version.
WriteHooks writes all of the generated scripts to the .git/hooks directory.
WriteShasum writes the shasum of the JSON representation of the configuration to hookz.shasum.

# Structs

Action is a task that will execute when a hook executes.
Configuration represents the content of .hookz.yaml.
Hook is the definition of a collection of actions to be run at a specified stage in the commit process.
Source defines a go repository that should be installed when hookz is initializing, updating, or resetting.
WriteCounter encapsulates the total number of bytes captured and rendered.