batches: make `-f` optional
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: LawnGnome
New behaviour (assuming COMMAND
is any command that accepted -f
, including apply
, preview
, repos
, or validate
):
src batch COMMAND
on a TTY: will wait for 250ms in case there's input on stdin; otherwise errorssrc batch COMMAND
with a file redirected in: waits indefinitely for inputsrc batch COMMAND -f -
: waits indefinitely for inputsrc batch COMMAND FILE
: reads from FILE
; equivalent to src batch COMMAND -f FILE
src batch COMMAND -f FILE
: works as beforeIn summary, this shouldn't break backward compatibility in any case except for the user slowly typing in a batch spec on stdin.
Fixes #680.
Push commits to the source branch or add previously merged commits to review them.