()
| 209 | } |
| 210 | |
| 211 | func 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 | |
| 230 | func newDebugCmd() *cli.Command { |
| 231 | return &cli.Command{ |
no test coverage detected