batches: piping of spec file fails for `src batch repos` without `-f`
Closed this issue · 0 comments
courier-new commented
According to src batch [repos|repositories] --help
,
Usage:
src batch repositories [-f] FILE
Examples:
$ src batch repositories batch.spec.yaml
$ src batch repositories -f batch.spec.yaml
However, omitting -f
doesn't actually work:
➜ specs src batch repos hello-world.spec.yaml
❌ Batch spec failed validation.
1. -f specified, but no input was detected on stdin; did you forget to pipe a batch spec in?
-f specified, but no input was detected on stdin; did you forget to pipe a batch spec in?
➜ specs src batch repositories hello-world.spec.yaml
❌ Batch spec failed validation.
1. -f specified, but no input was detected on stdin; did you forget to pipe a batch spec in?
-f specified, but no input was detected on stdin; did you forget to pipe a batch spec in?
I didn't test every other subcommand but it might just be repos
that's the problem because src batch [preview|apply]
seems to work fine without -f
.