-
Notifications
You must be signed in to change notification settings - Fork 50
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
Display Node and Doctor version in generated Doctor view #324
base: main
Are you sure you want to change the base?
Conversation
index.js
Outdated
.on('end', () => { | ||
fs.writeFile(systemInfoPath, chunks.toString(), 'utf-8', function () { | ||
}) | ||
}) |
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.
Why this instead of just copying the file? The other (and more efficient way of doing this if it's really needed is to just pipe from one stream to another...)
const in = fs.createReadStream(paths['/systeminfo'])
const out = fs.createWriteStream(systemInfoPath)
stream.pipeline(in, out, (err) => {
if (err) /** handle the error **/
})
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.
Really tho, I'm just not sure why this copy is necessary at all
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.
Yeah, I see that, it's not a very good solution, it was originally a problem with accessing the data file. But I've updated it there.
Good start. Please also be sure to include the command line arguments used to launch clinic |
We can add the necessary systemInfo data to the |
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.
oops…had review comments still in the queue…don't know if you'll have time for this anymore, no matter either way :)
No description provided.