MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / newCliApp

Function newCliApp

internal/cmd/cmd.go:17–34  ·  view source on GitHub ↗

newCliApp returns commitlint cli.App

()

Source from the content-addressed store, hash-verified

15
16// newCliApp returns commitlint cli.App
17func 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
36func newLintCmd() *cli.Command {
37 return &cli.Command{

Callers 1

RunFunction · 0.85

Calls 7

FullVersionFunction · 0.92
newInitCmdFunction · 0.85
newRemoveCmdFunction · 0.85
newLintCmdFunction · 0.85
newConfigCmdFunction · 0.85
newHookCmdFunction · 0.85
newDebugCmdFunction · 0.85

Tested by

no test coverage detected