From 352c29418f1232275a32a21a5001415a90b852f8 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Sun, 9 Nov 2014 21:07:43 -0800 Subject: [PATCH] core/commands2: Made 'ls' output match old command --- core/commands2/ls.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/commands2/ls.go b/core/commands2/ls.go index 506b898cf..04cfdea4d 100644 --- a/core/commands2/ls.go +++ b/core/commands2/ls.go @@ -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 {