-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(command): merge file ls and ls #5500
Conversation
a254b9e
to
17a3f9a
Compare
core/commands/ls.go
Outdated
> ipfs file ls QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ | ||
cat.jpg | ||
> ipfs file ls /ipfs/QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ | ||
cat.jpg |
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.
I think this information is overkill. Syntax for paths should be documented somewhere else.
core/commands/ls.go
Outdated
@@ -26,7 +26,7 @@ import ( | |||
type LsLink struct { | |||
Name, Hash string | |||
Size uint64 | |||
Type unixfspb.Data_DataType |
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.
I am not sure I like the idea of replacing an enum type with a string....
d014e21
to
1648961
Compare
1648961
to
34ebe30
Compare
1e00655
to
3ea54c3
Compare
We have to maintain API compatibilities so we can only add fields. |
@Kubuxu Which modification do you mean? |
As an example the switch from enum to string. |
3ea54c3
to
d4c1d19
Compare
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
d4c1d19
to
dc9456f
Compare
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
cf54426
to
c36b563
Compare
@Kubuxu I had changed it as your suggestion and updated the test. |
License: MIT
Signed-off-by: Overbool overbool.xu@gmail.com
Fixes: #5497 and #5502