commands/object: add comment
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
Overbool committed
Oct 27, 2018 at 10:08 UTC
0fe7bdfce9f9f74f4eeaefe76b16c38b69b0c233
3 files changed
+8
-2
core/commands/object/diff.go
+1
-1
@@ -8,7 +8,7 @@ import (
8
coreiface "github.com/ipfs/go-ipfs/core/coreapi/interface"
9
"github.com/ipfs/go-ipfs/dagutils"
10
11
- cmds "gx/ipfs/QmdTmGruUz23vgzym3uWpnAEQdGdGifQqBvP8UXSRjG8gZ/go-ipfs-cmds"
11
+ cmds "gx/ipfs/QmSXUokcP4TJpFfqozT69AVAYRtzXVMUjzQVkYX41R9Svs/go-ipfs-cmds"
12
cmdkit "gx/ipfs/Qmde5VP1qUkyQXKCfmEUA7bP64V2HAptbJ7phuPp7jXWwg/go-ipfs-cmdkit"
13
)
14
core/commands/object/object.go
+6
@@ -56,6 +56,7 @@ directly.`,
56
},
57
}
58
59
+// ObjectDataCmd object data command
60
var ObjectDataCmd = &cmds.Command{
61
Helptext: cmdkit.HelpText{
62
Tagline: "Output the raw bytes of an IPFS object.",
@@ -95,6 +96,7 @@ is the raw data of the object.
96
},
97
}
98
99
+// ObjectLinksCmd object links command
100
var ObjectLinksCmd = &cmds.Command{
101
Helptext: cmdkit.HelpText{
102
Tagline: "Output the links pointed to by the specified object.",
@@ -166,6 +168,7 @@ multihash.
168
Type: &Object{},
169
}
170
171
+// ObjectGetCmd object get command
172
var ObjectGetCmd = &cmds.Command{
173
Helptext: cmdkit.HelpText{
174
Tagline: "Get and serialize the DAG node named by <key>.",
@@ -271,6 +274,7 @@ Supported values are:
274
},
275
}
276
277
+// ObjectStatCmd object stat command
278
var ObjectStatCmd = &cmds.Command{
279
Helptext: cmdkit.HelpText{
280
Tagline: "Get stats for the DAG node named by <key>.",
@@ -333,6 +337,7 @@ var ObjectStatCmd = &cmds.Command{
337
},
338
}
339
340
+// ObjectPutCmd object put command
341
var ObjectPutCmd = &cmds.Command{
342
Helptext: cmdkit.HelpText{
343
Tagline: "Store input as a DAG object, print its key.",
@@ -433,6 +438,7 @@ And then run:
438
Type: Object{},
439
}
440
441
+// ObjectNewCmd object new command
442
var ObjectNewCmd = &cmds.Command{
443
Helptext: cmdkit.HelpText{
444
Tagline: "Create a new object from an ipfs template.",
core/commands/root.go
+1
-1
@@ -181,7 +181,7 @@ var rootROSubcommands = map[string]*cmds.Command{
181
"get": ocmd.ObjectGetCmd,
182
"stat": ocmd.ObjectStatCmd,
183
},
184
- }),
184
+ },
185
"dag": {
186
Subcommands: map[string]*cmds.Command{
187
"get": dag.DagGetCmd,