We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55a846 commit c449c14Copy full SHA for c449c14
cmd/cmd.go
@@ -5,8 +5,8 @@ import (
5
"github.com/urfave/cli/v2"
6
)
7
8
-// GetApp returns commitlint cli.App
9
-func GetApp() *cli.App {
+// New returns commitlint cli.App
+func New() *cli.App {
10
createCmd := &cli.Command{
11
Name: "create",
12
Usage: "create commitlint config, hooks files",
main.go
@@ -24,7 +24,7 @@ func main() {
24
return nil
25
}
26
27
- app := cmd.GetApp()
+ app := cmd.New()
28
err := app.Run(os.Args)
29
if err != nil {
30
fmt.Println("Error: ", err)
0 commit comments