script
script copied to clipboard
Making it easy to write shell-like scripts in Go
How to improve performance through buffering
Addresses #229
Hi! I started using script recently, which I've found very useful. One pattern I've found myself using is making in-place replacements across multiple files like this: `script.ListFiles("*.txt").ExecForEach("sed -i 's/tpo/typo/g' {{.}}").Wait()`...
It would be nice to be able to specify a timeout to avoid commands hanging during execution. Maybe something like the existing WithEnv(), but instead WithTimeout() or WithWaitDelay() to support...
Hello! After working with script for a while (nice work btw!) I miss some basic functions that I eventually implemented (in a quick and dirty way) for myself. Most of...