Skip to content
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

Simpler tool for raw GIO requests #84

Open
edubart opened this issue Sep 29, 2024 · 0 comments
Open

Simpler tool for raw GIO requests #84

edubart opened this issue Sep 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@edubart
Copy link
Contributor

edubart commented Sep 29, 2024

Context

I was trying to create a naive example on how to exchange data with the outside, I ended up with the following example:

echo '{"domain":16,"id":"'$(echo -n Hello from inside! | hex --encode)'"}' |
  rollup gio |
  jq -r .data |
  tr -d '\n' |
  hex --decode > output

This is boilerplate and heavy on machine cycles due to all encoding going on, I wish we had a new simpler tool more low level and naive to simplify the example, something like:

echo -n Hello from inside! | gio --domain 16 > output

So no JSON and hex encoding in the middle, just raw binary data for IO with pipes. The tool would be way simpler than rollup tool. The motivation is to simplify examples in things I am trying to document.

Maybe this could be done inside yield tool, since it is more low level.

@edubart edubart added the enhancement New feature or request label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant