A simple plugin to automate the
test && commit || revert
workflow in atom.
apm install atom-tcr
Save a JSON file named .tcr
in your project directory, looking something like:
{"test": "node test.js","commit": "git add -A && git commit -am working","revert": "git reset --hard"}
When the above configuration file is present, and any file is saved in your project:
test
command is executed.test
terminates with exit code 0, commit
is executed.test
terminates with any other exit code revert
is executed.In either case, stdout
and stderr
are written to a file called ./tcr-feedback
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.