con2 / emrichen

A Template engine for YAML & JSON
MIT License
107 stars 11 forks source link

`io.UnsupportedOperation: underlying stream is not seekable` when output is a pipeline #57

Closed japsu closed 2 years ago

japsu commented 2 years ago
$ emrichen postgres/secret.local.yaml | kc apply -n outline-ropecon -f -
Traceback (most recent call last):
  File "/Users/japsu/Hobby/venv3.10-emrichen/bin/emrichen", line 33, in <module>
    sys.exit(load_entry_point('emrichen', 'console_scripts', 'emrichen')())
  File "/Users/japsu/Hobby/emrichen/emrichen/__main__.py", line 35, in main
    args.output_file.seek(0)
io.UnsupportedOperation: underlying stream is not seekable
error: no objects passed to apply

Regression in #55 #54