core/commands2: Made 'ls' output match old command
Matt Bell committed
Nov 9, 2014 at 21:07 UTC
352c29418f1232275a32a21a5001415a90b852f8
1 file changed
+1
-2
core/commands2/ls.go
+1
-2
@@ -72,7 +72,6 @@ it contains, with the following format:
72
},
73
Marshallers: map[cmds.EncodingType]cmds.Marshaller{
74
cmds.Text: func(res cmds.Response) ([]byte, error) {
75
- // TODO: revert format to match old command
75
s := ""
76
output := res.Output().(*LsOutput).Objects
77
@@ -82,7 +81,7 @@ it contains, with the following format:
81
}
82
83
for _, link := range object.Links {
85
- s += fmt.Sprintf("-> %s %s (%v bytes)\n", link.Name, link.Hash, link.Size)
84
+ s += fmt.Sprintf("%s %v %s\n", link.Hash, link.Size, link.Name)
85
}
86
87
if len(output) > 1 {