Skip to content

Commit c449c14

Browse files
refactor: rename GetApp to New
1 parent f55a846 commit c449c14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"github.com/urfave/cli/v2"
66
)
77

8-
// GetApp returns commitlint cli.App
9-
func GetApp() *cli.App {
8+
// New returns commitlint cli.App
9+
func New() *cli.App {
1010
createCmd := &cli.Command{
1111
Name: "create",
1212
Usage: "create commitlint config, hooks files",

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func main() {
2424
return nil
2525
}
2626

27-
app := cmd.GetApp()
27+
app := cmd.New()
2828
err := app.Run(os.Args)
2929
if err != nil {
3030
fmt.Println("Error: ", err)

0 commit comments

Comments
 (0)