@@ -14,17 +14,17 @@ const (
14
14
ErrExitCode = 1
15
15
)
16
16
17
- // Init is the callback function for init command
18
- func Init (confPath string , isGlobal , isReplace bool ) error {
17
+ // initLint is the callback function for init command
18
+ func initLint (confPath string , isGlobal , isReplace bool ) error {
19
19
hookDir , err := initHooks (confPath , isGlobal , isReplace )
20
20
if err != nil {
21
21
return err
22
22
}
23
23
return setGitConf (hookDir , isGlobal )
24
24
}
25
25
26
- // Lint is the callback function for lint command
27
- func Lint (confPath , msgPath string ) error {
26
+ // lintMsg is the callback function for lint command
27
+ func lintMsg (confPath , msgPath string ) error {
28
28
// NOTE: lint should return with exit code for error case
29
29
resStr , hasError , err := runLint (confPath , msgPath )
30
30
if err != nil {
@@ -40,20 +40,20 @@ func Lint(confPath, msgPath string) error {
40
40
return nil
41
41
}
42
42
43
- // HookCreate is the callback function for create hook command
44
- func HookCreate (confPath string , isReplace bool ) error {
43
+ // hookCreate is the callback function for create hook command
44
+ func hookCreate (confPath string , isReplace bool ) error {
45
45
return createHooks (confPath , isReplace )
46
46
}
47
47
48
- // ConfigCreate is the callback function for create config command
49
- func ConfigCreate (onlyEnabled bool ) error {
48
+ // configCreate is the callback function for create config command
49
+ func configCreate (onlyEnabled bool ) error {
50
50
defConf := config .GetDefaultConf (onlyEnabled )
51
51
outPath := filepath .Join ("." , config .DefaultFile )
52
52
return config .WriteConfToFile (outPath , defConf )
53
53
}
54
54
55
- // ConfigCheck is the callback function for check/verify command
56
- func ConfigCheck (confPath string ) error {
55
+ // configCheck is the callback function for check/verify command
56
+ func configCheck (confPath string ) error {
57
57
conf , err := config .Parse (confPath )
58
58
if err != nil {
59
59
return err
0 commit comments