alexilyaev / runrun-cli

Delightful interactive CLI to quickly run npm scripts.
MIT License
16 stars 0 forks source link

Rerun last executed script (closes #8) #13

Closed zohar-yzgiaev closed 4 years ago

zohar-yzgiaev commented 4 years ago

This PR introduces the r option to rerun the last executed script including aliases for rerunning runrun. (runrunrun/rrr).

@alexilyaev please note that https://github.com/sindresorhus/env-paths creates absolute paths which conflicts with the idea to create .data.json file for each CWD. With this solution every time runrun runs, the last executed script will be written to a cached file which will override previous data if it exists.

alexilyaev commented 4 years ago

Cool, thanks for the PR! I'll run some tests on it tomorrow.

alexilyaev commented 4 years ago

@zoharyzgiaev Sorry it took me a long time to get back to this project.

I've refactored a bunch of stuff on the way, and fixed some issues:

Thank you for the time you've put into this, it really helped me push things forward. This feature works great, it'll greatly improve my day to day work, and I know some people have been waiting for it as well! 😎🎉