Replies: 1 comment
|
Thanks for the clear write-up. I agree that I opened #603 to make the env/shell formats emit clean data by default and add an explicit This comment was generated by Codex. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
fnox export --format envprepends an informational comment header (+ a blank line) to stdout, which complicates piping the output into tools that expect cleanKEY=valuelines.--format jsonemits no such header, so the two machine formats are inconsistent.Current behavior (fnox 1.29.0)
The three # lines + blank line go to stdout (stderr is empty).
--format jsonemits only the JSON object.Why it's a papercut
The natural use of
--format envis to feed a consumer. For instance:The header + blank line become bogus
# Exported… /empty entries, so every such pipeline needs a| grep -vE '^#|^$'guard. Writing to a file (-o) is fine (a header comment in a .env file is even nice), it's specifically the piped-to-stdout case that suffers.Possible directions (your call)
--no-header/--quietflag.--format jsonand omit it for machine formats.Happy to send a PR for whichever direction you'd prefer. Thanks for fnox!
Environment
All reactions