docs(ls) help
Brian Tiger Chow committed
Nov 7, 2014 at 18:36 UTC
0e8e3cccb6136ec7b8cf5933ab382b76a2dda7f7
1 file changed
+10
-1
core/commands2/ls.go
+10
-1
@@ -26,7 +26,16 @@ var lsCmd = &cmds.Command{
26
Arguments: []cmds.Argument{
27
cmds.Argument{"object", cmds.ArgString, false, true},
28
},
29
- Help: "TODO",
29
+ // TODO UsageLine: "ls",
30
+ // TODO Short: "List links from an object.",
31
+ Help: `ipfs ls <ipfs-path> - List links from an object.
32
+
33
+ Retrieves the object named by <ipfs-path> and displays the links
34
+ it contains, with the following format:
35
+
36
+ <link base58 hash> <link size in bytes> <link name>
37
+
38
+`,
39
Run: func(res cmds.Response, req cmds.Request) {
40
node := req.Context().Node
41