Skip to content

Commit f70a8e3

Browse files
committed
commands/object: add comment
License: MIT Signed-off-by: Overbool <[email protected]>
1 parent 721d23b commit f70a8e3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

core/commands/object/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
coreiface "github.com/ipfs/go-ipfs/core/coreapi/interface"
99
"github.com/ipfs/go-ipfs/dagutils"
1010

11-
cmds "gx/ipfs/QmdTmGruUz23vgzym3uWpnAEQdGdGifQqBvP8UXSRjG8gZ/go-ipfs-cmds"
11+
cmds "gx/ipfs/QmSXUokcP4TJpFfqozT69AVAYRtzXVMUjzQVkYX41R9Svs/go-ipfs-cmds"
1212
cmdkit "gx/ipfs/Qmde5VP1qUkyQXKCfmEUA7bP64V2HAptbJ7phuPp7jXWwg/go-ipfs-cmdkit"
1313
)
1414

core/commands/object/object.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ directly.`,
5656
},
5757
}
5858

59+
// ObjectDataCmd object data command
5960
var ObjectDataCmd = &cmds.Command{
6061
Helptext: cmdkit.HelpText{
6162
Tagline: "Output the raw bytes of an IPFS object.",
@@ -95,6 +96,7 @@ is the raw data of the object.
9596
},
9697
}
9798

99+
// ObjectLinksCmd object links command
98100
var ObjectLinksCmd = &cmds.Command{
99101
Helptext: cmdkit.HelpText{
100102
Tagline: "Output the links pointed to by the specified object.",
@@ -166,6 +168,7 @@ multihash.
166168
Type: &Object{},
167169
}
168170

171+
// ObjectGetCmd object get command
169172
var ObjectGetCmd = &cmds.Command{
170173
Helptext: cmdkit.HelpText{
171174
Tagline: "Get and serialize the DAG node named by <key>.",
@@ -271,6 +274,7 @@ Supported values are:
271274
},
272275
}
273276

277+
// ObjectStatCmd object stat command
274278
var ObjectStatCmd = &cmds.Command{
275279
Helptext: cmdkit.HelpText{
276280
Tagline: "Get stats for the DAG node named by <key>.",
@@ -333,6 +337,7 @@ var ObjectStatCmd = &cmds.Command{
333337
},
334338
}
335339

340+
// ObjectPutCmd object put command
336341
var ObjectPutCmd = &cmds.Command{
337342
Helptext: cmdkit.HelpText{
338343
Tagline: "Store input as a DAG object, print its key.",
@@ -433,6 +438,7 @@ And then run:
433438
Type: Object{},
434439
}
435440

441+
// ObjectNewCmd object new command
436442
var ObjectNewCmd = &cmds.Command{
437443
Helptext: cmdkit.HelpText{
438444
Tagline: "Create a new object from an ipfs template.",

core/commands/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var rootROSubcommands = map[string]*cmds.Command{
181181
"get": ocmd.ObjectGetCmd,
182182
"stat": ocmd.ObjectStatCmd,
183183
},
184-
}),
184+
},
185185
"dag": {
186186
Subcommands: map[string]*cmds.Command{
187187
"get": dag.DagGetCmd,

0 commit comments

Comments
 (0)