module
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Feb 15, 2023
License: MIT
Opens a new window with license information.
README
¶
test && commit || revert - cli
This is a cli to apply TCR for your daily work.
Usage
Installation
task intall
This will:
- Build the binary
- Copy the build binary into
$HOME/bin.
Please include $HOME/bin into your path configuration.
Configuration
Create the file tcr.json in the git-repository root.
Example:
{
"test": "go test ./..."
}
Attributes:
test: test command to run. Whitespaces within arguments (i.e. task 'argument with space') are not supported.
Run tcr
tcr
Behaviour
| worktree |
result of test execution |
effect |
exit code |
test output |
| clean |
(will not be executed) |
(none) |
zero |
(none) |
| dirty |
tests passed |
a new commit is created with changes |
zero |
swallowed |
| dirty |
tests failed |
worktree is reset to previous commit |
non-zero |
shown |
| dirty |
test command can not be executed |
(none) |
non-zero |
(none) |
Directories
¶
cmd
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.