0.0.1 • Published 6 years ago
autofail v0.0.1
autofail
Run specified command and exit gracefully.
$ autofail echo Hi
Hi
$ echo $?
1
Use Case
You can disable commiting a file using lint-staged
:
{
// ...
"lint-staged": {
// ...
"package-lock.json": [
"autofail cowsay Please use yarn to add/remove dependencies"
]
}
}
0.0.1
6 years ago