Commit 352c2941 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

core/commands2: Made 'ls' output match old command

parent 68693783
......@@ -72,7 +72,6 @@ it contains, with the following format:
},
Marshallers: map[cmds.EncodingType]cmds.Marshaller{
cmds.Text: func(res cmds.Response) ([]byte, error) {
// TODO: revert format to match old command
s := ""
output := res.Output().(*LsOutput).Objects
......@@ -82,7 +81,7 @@ it contains, with the following format:
}
for _, link := range object.Links {
s += fmt.Sprintf("-> %s %s (%v bytes)\n", link.Name, link.Hash, link.Size)
s += fmt.Sprintf("%s %v %s\n", link.Hash, link.Size, link.Name)
}
if len(output) > 1 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment