Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix(cli): pipe content to the cli from cat it is a stream #482

Merged
merged 3 commits into from
Sep 13, 2016

Conversation

dignifiedquire
Copy link
Member

Found while testing the cli :)

})
return
}

ipfs.files.cat(path, (err, file) => {
if (err) {
throw (err)
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@daviddias
Copy link
Member

We can now remove the ipfs.isDaemonOn checks, as APIs are the same

@dignifiedquire
Copy link
Member Author

@diasdavid I'm afraid you are mistaken ipfs.files.cat is not a thing: https://github.com/ipfs/js-ipfs-api/blob/master/src/api/files.js

@daviddias
Copy link
Member

@dignifiedquire
Copy link
Member Author

@diasdavid there still is no cat

@daviddias
Copy link
Member

@dignifiedquire got it, we missed that one!

@daviddias daviddias force-pushed the fix-online-cat branch 3 times, most recently from d43a05d to 0b53acf Compare September 13, 2016 02:48

function onFile (err, file) {
if (err) {
console.log(err)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove :)

@daviddias daviddias merged commit d682b0c into master Sep 13, 2016
@daviddias daviddias deleted the fix-online-cat branch September 13, 2016 17:18
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
)

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 <yuvrajzohan@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants