Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // absolute path to the used configuration file ConfigFile string `yaml:"-"` // absolute path to the affected git repository GitDir string `yaml:"-"` // working directory for hook executions which defaults to the root of the repository WorkingDir string `yaml:"-"` // absolute path to the giks binary file Binary string `yaml:"-"` // parsed hook configurations based on the configuration file Hooks map[string]Hook `yaml:"hooks"` // version of the configuration in case backwards compatibility is not an option at some point Version float32 `yaml:"version"` }
Config holds the config information provided by the used configuration file and additional meta information which is available at runtime.
func AssembleConfig ¶
AssembleConfig takes giks specific arguments and parses the configuration file for giks in order to return a config. Additionally, it sanitizes the given inputs targeting files and returns a configuration which can be used without bothering about paths.
func (Config) HookListNames ¶
type Hook ¶
Click to show internal directories.
Click to hide internal directories.