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

Function newRemoveCmd

internal/cmd/cmd.go:211–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211func newRemoveCmd() *cli.Command {
212 return &cli.Command{
213 Name: "remove",
214 Usage: "Remove commitlint from git config",
215 Description: "Unset git's core.hooksPath so commits are no longer linted.\nHook files are left intact.\nUse --global to remove globally configured hooks.",
216 Flags: []cli.Flag{
217 &cli.BoolFlag{
218 Name: "global",
219 Aliases: []string{"g"},
220 Usage: "Remove from global git config",
221 },
222 },
223 Action: func(ctx *cli.Context) error {
224 isGlobal := ctx.Bool("global")
225 return removeLint(isGlobal)
226 },
227 }
228}
229
230func newDebugCmd() *cli.Command {
231 return &cli.Command{

Callers 1

newCliAppFunction · 0.85

Calls 1

removeLintFunction · 0.85

Tested by

no test coverage detected