Skip to content

Commit

Permalink
adding option loopcls
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Mar 9, 2024
1 parent 649b55f commit 19018c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Takes an input, usually a data structure such as json, and transforms it to an e
| pause | If 'true' will try to pause contents in alternative to _less -r_ |
| color | If 'true' will force colored output if available |
| loop | If defined will loop the processing by the number of seconds provided |
| loopcls | If 'true' and loop is defined it will clear the screen on each loop cycle |
| -v | Changes the input to a map with the tool's version info |
| version | Alternative way to change the input to a map with the tool's version |

Expand Down
1 change: 1 addition & 0 deletions src/oafp.source.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ if (isDef(params["-debug"])) {

if (isNumber(params.loop)) {
while(1) {
if (toBoolean(params.loopcls)) cls()
_run()
sleep(params.loop * 1000, true)
}
Expand Down

0 comments on commit 19018c3

Please sign in to comment.