newCliApp returns commitlint cli.App
()
| 15 | |
| 16 | // newCliApp returns commitlint cli.App |
| 17 | func newCliApp() *cli.App { |
| 18 | cmds := []*cli.Command{ |
| 19 | newInitCmd(), |
| 20 | newRemoveCmd(), |
| 21 | newLintCmd(), |
| 22 | newConfigCmd(), |
| 23 | newHookCmd(), |
| 24 | newDebugCmd(), |
| 25 | } |
| 26 | |
| 27 | app := &cli.App{ |
| 28 | Name: "commitlint", |
| 29 | Usage: "Lint commit messages using Conventional Commits rules", |
| 30 | Commands: cmds, |
| 31 | Version: internal.FullVersion(), |
| 32 | } |
| 33 | return app |
| 34 | } |
| 35 | |
| 36 | func newLintCmd() *cli.Command { |
| 37 | return &cli.Command{ |
no test coverage detected