портирован код из старого репозитория https://di9.ru/git/Voomra/Conventional-Commits
18 lines
376 B
Go
18 lines
376 B
Go
package main
|
|
|
|
import (
|
|
"commitlint/internal/commitlint"
|
|
"flag"
|
|
)
|
|
|
|
func main() {
|
|
commitMessagePath := flag.String("commitMessage", ".git/COMMIT_EDITMSG", "path to commit message file")
|
|
configPath := flag.String("config", "commitlint.json", "configuration file")
|
|
flag.Parse()
|
|
|
|
err := commitlint.EntryPoint(commitMessagePath, configPath)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|