would there be any interest in extending the features of this cli tool to match loop-rs
I was searching for the closest thing written in Go and this seems to be it.
Loops in bash are surprisingly complicated and fickle! I wanted a simple and intuitive way to write controllable loops that:
Run on controllable timers!
$ loop 'ls' --every 10s
Have custom counters!
$ loop 'touch $COUNT.txt' --count-by 5
Loop until output matches a condition!
$ loop --until-contains 200 -- ./get_response_code.sh --site mysite.biz
Loop until a certain time!
$ loop './poke_server' --for-duration 8h
Loop until a program succeeds (or fails!)
$ loop './poke_server' --until-success
Iterate over the standard input!
$ cat files_to_create.txt | loop 'touch $ITEM'
Get a summary of the runs!
$ loop 'ls' --for-duration 10min --summary
Run until output changes or stays the same between invocations!
$ loop --until-changes date +%s
$ loop --until-same date +%s
would there be any interest in extending the features of this cli tool to match loop-rs
I was searching for the closest thing written in Go and this seems to be it.