-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
57e571f
to
ba2b561
Compare
7d3761c
to
8bf83f3
Compare
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.
Hi @rasmuserik, great head start :)
I see that you implemented this feature only in cli
and not in core
+ http-api
. We want to have it implemented in core and then have http-api
and cli
consuming that core api (see other files commands)
Also, now that ls
is becoming a thing, we want:
- move the tests from https://github.com/ipfs/js-ipfs-api/blob/master/test/ls.spec.js to https://github.com/ipfs/interface-ipfs-core
- write ls spec on https://github.com/ipfs/interface-ipfs-core/blob/master/src/files.js
- make sure that ls tests pass in both js-ipfs-api and js-ipfs
Sounds like something you want to tackle too? Thank you!
src/cli/commands/ls.js
Outdated
@@ -0,0 +1,60 @@ | |||
'use strict' | |||
|
|||
const {print, rightpad} = require('../utils') |
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.
We are not using destructuring just yet. Could you change it?
Why? We review the JS best practices every quarter or so and commit to a set of things, this helps us agree on codestyle and move forward faster :)
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.
Yes, that is changed now. Is there a place where the agreed code style is documented?
(The destructuring is not mentioned js-project-guidelines.md, nor in the standard code style)
License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk>
8bf83f3
to
fe255ff
Compare
I've added the tasks you mentioned to the list, and will look into it, when I have some time. |
Hi @rasmuserik how are things going? Any hopes of getting ls to see the light of day? Can we help? |
Hi @diasdavid, I am busy with other projects at the moment, so unfortunately I do not have time to look into it for the time being (and no recent progress) ‐ it is on my backlog, but very very far down :( |
Closing this pull-request, as I am too busy with other projects. |
Let's keep it open and just signal that is open for contributions :) |
Being continued in #1073 |
Implementation of
js-ipfs ls
(#927)Tasks:
ls
command-v
/--headers
supportThis implements a basic working version of
js-ipfs ls
, supporting listing of directories, with similar output asgo-ipfs ls
.Notice: the progress will be slow, as I only have a few hours per week for this kind of projects.