package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Apr 22, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func InitConfig(cfgFile string)
InitConfig load config
type Commands struct {
Name string `mapstructure:"name"`
Run string `mapstructure:"run"`
Silent bool `mapstructure:"silent"`
Env map[string]string `mapstructure:"env"`
}
type Configuration struct {
PreCommit Hook `mapstructure:"pre-commit"`
CommitMsg Hook `mapstructure:"commit-msg"`
PrePush Hook `mapstructure:"pre-push"`
PreMergeCommit Hook `mapstructure:"pre-merge-commit"`
PreRebase Hook `mapstructure:"pre-rebase"`
PreReceive Hook `mapstructure:"pre-receive"`
}
type Hook struct {
FailFast bool `mapstructure:"fail-fast"`
Timeout string `mapstructure:"timeout"`
Commands []Commands `mapstructure:"commands"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.