-
Notifications
You must be signed in to change notification settings - Fork 153
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for jq and json2csv #131
Comments
I have |
Yes Sir, jehiah/json2csv: command line tool to convert json to csv (github.com)<https://github.com/jehiah/json2csv>
From: Brent Woodruff ***@***.***>
Date: Friday, June 3, 2022 at 4:39 PM
To: holzschu/ios_system ***@***.***>
Cc: hhhuff ***@***.***>, Author ***@***.***>
Subject: Re: [holzschu/ios_system] Request for jq and json2csv (Issue #131)
I have jq working in the simulator and am trying to finish up getting it added. I'm not familiar with json2csv. Do you have a link to it?
—
Reply to this email directly, view it on GitHub<#131 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AV2A4PNJCEVD5KNTBQ4CYTLVNJ3QFANCNFSM5UDXACGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
…--
*******************************************************************
This
message was sent from RiskIQ, and is intended only for the designated
recipient(s). It may contain confidential or proprietary information and
may be subject to confidentiality protections. If you are not a designated
recipient, you may not review, copy or distribute this message. If you
receive this in error, please notify the sender by reply e-mail and delete
this message. Thank you.
*******************************************************************
|
I had a quick look and the difficulty here is that the program is written in Go. This language toolset is not yet working with ios_system. I compiled it and it produces neither output nor files.
Go can natively produce both wasm and ios/arm64 formats, however the wasm SDK is not the one needed for to produce compatibly ios_system output. The ios/arm64 output would work, but Go does not support outputting dynamic, shared libraries on ios/arm64. I tried combinations of Honestly, your best bet for getting json2csv is to port it to python or jq. jq has an |
I would be interested in decompiling the resulting Go wasm, replacing the needed SDK calls, and then reassembling it. That would enable Go programs in |
Used |
I've been thinking. WASM should be portable (it is designed for that). The only potentially non-portable parts are when it tries to access the file system, which is usually encapsulated into JavaScript commands. What kind of errors do you get with |
IIRC it just doesn't work. No output, no errors, no files. |
That doesn't make a lot of clues, I'll grant you that. But normally, a webAssembly command that does not execute produces an error, so "no errors" could be a positive sign. Since webAssembly does not have access to the file system, I would try with stdin and stdout ( |
This similarly produces no output. |
Go wasm does not provide wasi and therefore cannot be used in the context ios_system / a-shell wants. The I'm looking at one other option and then I think I'm out of ideas. The good news is that using |
I haven't looked at the Go documentation, but if their WebAssembly version comes with a JavaScript container, maybe we can run this JS container rather than ours? |
Here is the working |
Thanks for compiling this command. |
I think that version is old and broken. I have attached a tar.gz with the wasm and some tests that can be run that are from the project's acceptance tests and docs. See the tests.txt file for what to run and the expected output (there will be some newline representation differences because of how I copied the tests over most likely). |
It works with your tests, and it works with a I'm not knowledgeable enough to know whether this is normal or not. |
|
Also, I pushed my entire working directory for the The branch is |
Thanks a lot for cross-compiling One point I haven't mentionned so far: Update: it seems to hold in my tests. I had a lot of issues with |
Hi, You can also install |
I would love to see if someone could add jq and json2csv as I have a repeated workflow that include these tools. Thank you.
The text was updated successfully, but these errors were encountered: