ks-killer
v0.2.2
Published
Kill your Switches with ease
Downloads
3
Readme
Background
KillSwitch is a lightweight mechanism that lets you roll back code changes if any regression is found. It is very important, but too many KillSwitches have a negative effect on the readability and performance. So graduating them on time is necessary.
After spending so much time graduating KSes manually, we can't help but ask: Is there a better way? Yes, enter ks-killer!
Installation
npm i -g ks-killer
// OR
yarn global add ks-killer
Usage
$ cd your/project
# graduate a specific ks
$ ks-killer <target-ks-id>
# graduate multiple ks by date
# input should be a valid date supported by `Date.parse`
# e.g: ks-killer --before-date 12/31/2021
$ ks-killer --before-date <date>
# You can also tell it where to find the KS declaration by specifying the -k or -p flag.
# This boosts performance because we don't need to scan many source files just to find the declaration.
$ ks-killer <target-ks-id> -k path/to/ks-decl
Implementation
The deck explains it in detail.