-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
src/cli/commands/files/add.js
Outdated
let list = [] | ||
let currentBytes = 0 | ||
|
||
async.waterfall([ |
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.
lets stick with const waterfall = require('async/waterfall)
please
My PR failed to pass the Travis build because of examples/traverse-ipld-graphs/git.js I have had to add this file and correct the code style errors. This should make the tests pass for this PR.
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.
LReallyGTM! @bmordan Could you confirm that it also works for folders?
Also, does this work over ipfs-api? (i.e with a daemon on?) |
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 PR needs:
- work with the daemon on (though js-ipfs-api)
- tests
|
Testing the progress barThere is now:
What I tried to do yesterday was hook into progress.stdout and verify that the progress bar was being printed to the terminal. When the tests run progress.stdout is passed to the progress bar library but To get the progress bar to output in tests means you have to highjack stdout in the tests and stub out the following:
Then the progress bar is piped to However I can see the testing coverage has now fallen 😞 |
Now done through #1036 |
go-ipfs
js-ipfs
This is the progress bar from https://github.com/visionmedia/node-progress which is being called in
js-ipfs-unixfs-engine
in the builder.I have also done a little house keeping in the
src/files/add
as the callbacks were getting a little unwieldy.