-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(cli): pipe content to the cli from cat it is a stream #482
Conversation
src/cli/commands/files/cat.js
Outdated
|
|
||
| ipfs.files.cat(path, (err, file) => { | ||
| if (err) { | ||
| throw (err) |
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 can be simplified now, since it doesn't matter anymore if the daemon is on, js-ipfs-api also has ipfs.files.cat and it is the same API
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.
oh cool, didn't know ipfs.files.cat was a thing on js-ipfs-api
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.
done
|
We can now remove the |
c7df77e to
3e4e2fd
Compare
|
@diasdavid I'm afraid you are mistaken |
|
@diasdavid there still is no |
|
@dignifiedquire got it, we missed that one! |
d43a05d to
0b53acf
Compare
src/cli/commands/files/cat.js
Outdated
|
|
||
| function onFile (err, file) { | ||
| if (err) { | ||
| console.log(err) |
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.
please remove :)
0b53acf to
5b8da13
Compare
) fix a couple of grammatical errors arrange function index in alphabetical order add more options to ipfs.add doc rename cid-version to cidVersion in the docs closes: ipfs#429 License: MIT Signed-off-by: Prabhakar-Poudel <[email protected]>
Found while testing the cli :)