-
Notifications
You must be signed in to change notification settings - Fork 137
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
Reading hardware data from stdin #92
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, however we need to update the documentation and examples since this is a breaking change.
I think having the capability to read the hardware data from a file is definitely advantageous, especially for large blobs and/or a process that writes to a hardware file asynchronously. My suggestion is that we add the stdin as you've done it, but also have a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
@nathangoulding That makes sense, I will do the changes. Please let me know your thoughts on this. |
Signed-off-by: Gaurav Gahlot <gaurav.gahlot19@gmail.com>
Signed-off-by: Gaurav Gahlot <gaurav.gahlot19@gmail.com>
Signed-off-by: Gaurav Gahlot <gaurav.gahlot19@gmail.com>
will update the docs as part of a different PR
This looks great guys. Nice work on it. 👍 |
At present, the hardware data is pushed as shown below and is not the right (or best) way to do it:
With the code changes in place, a user can now pipe the hardware data from a JSON file. For example, if the data is saved in
/tmp/data.json
, you can push the data with either of the following:Also, if there is no error a confirmation message saying
Hardware data pushed successfully
is received after the data is pushed.Signed-off-by: Gaurav Gahlot gaurav.gahlot19@gmail.com