New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
save
fails with custom to ndjson
command
#10429
Comments
sounds good to me, as long as we can also have a |
i mean, this is an issue with Nushell's |
Oh, you're saying that you want the implicit conversion by extension if there's a |
exactly, just as the symmetric of the behaviour between
well apart from the only place in the source base where this error is returned, not sure myself either 馃 |
This comment was marked as outdated.
This comment was marked as outdated.
to ndjson
because of some internal errorsave
fails with custom to ndjson
command
follow up to - #10283 # Description even though it appears defining `to foo` does not allow to do `save x.foo` for free (see #10429), because #10283 did add `from ndjson` and `from jsonl` to the standard library, i thought adding their `to ...` counterpart would make sense :yum: # User-Facing Changes users can now convert structured data back to NDJSON and JSONL :ok_hand: # Tests + Formatting this PR adds the exact same tests as for the `from ...` commands - structured data is in `result` and the string is now the expected - the two invalid `from ...` tests cannot be reproduced for `to ...` afaik # After Submitting
follow up to - nushell#10283 # Description even though it appears defining `to foo` does not allow to do `save x.foo` for free (see nushell#10429), because nushell#10283 did add `from ndjson` and `from jsonl` to the standard library, i thought adding their `to ...` counterpart would make sense :yum: # User-Facing Changes users can now convert structured data back to NDJSON and JSONL :ok_hand: # Tests + Formatting this PR adds the exact same tests as for the `from ...` commands - structured data is in `result` and the string is now the expected - the two invalid `from ...` tests cannot be reproduced for `to ...` afaik # After Submitting
# Description Fixes nushell#10429 where `save` fails if a custom command is used as the file format converter. # Tests + Formatting Added a test.
Describe the bug
we now have
std formats "from ndjson"
but what aboutto ndjon
to be able to hopefullysave foo.ndjson
? 馃槒i wanted to try that but i get an error 馃
first of all, here is the command
How to reproduce
ls
as NDJSONExpected behavior
i expected this to give the same results as
which gives
from the Nushell repo 馃憣
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: