initLint is the callback function for init command
(confPath, hooksPath string, isGlobal, isReplace bool)
| 7 | |
| 8 | // initLint is the callback function for init command |
| 9 | func initLint(confPath, hooksPath string, isGlobal, isReplace bool) error { |
| 10 | hookDir, err := initHooks(confPath, hooksPath, isGlobal, isReplace) |
| 11 | if err != nil { |
| 12 | return err |
| 13 | } |
| 14 | return setGitConf(hookDir, isGlobal) |
| 15 | } |
| 16 | |
| 17 | func setGitConf(hookDir string, isGlobal bool) error { |
| 18 | args := []string{"config"} |
no test coverage detected