mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 13:27:50 +08:00
commands/object: add comment
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
This commit is contained in:
parent
df58a2d617
commit
0fe7bdfce9
@ -8,7 +8,7 @@ import (
|
||||
coreiface "github.com/ipfs/go-ipfs/core/coreapi/interface"
|
||||
"github.com/ipfs/go-ipfs/dagutils"
|
||||
|
||||
cmds "gx/ipfs/QmdTmGruUz23vgzym3uWpnAEQdGdGifQqBvP8UXSRjG8gZ/go-ipfs-cmds"
|
||||
cmds "gx/ipfs/QmSXUokcP4TJpFfqozT69AVAYRtzXVMUjzQVkYX41R9Svs/go-ipfs-cmds"
|
||||
cmdkit "gx/ipfs/Qmde5VP1qUkyQXKCfmEUA7bP64V2HAptbJ7phuPp7jXWwg/go-ipfs-cmdkit"
|
||||
)
|
||||
|
||||
|
||||
@ -56,6 +56,7 @@ directly.`,
|
||||
},
|
||||
}
|
||||
|
||||
// ObjectDataCmd object data command
|
||||
var ObjectDataCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Tagline: "Output the raw bytes of an IPFS object.",
|
||||
@ -95,6 +96,7 @@ is the raw data of the object.
|
||||
},
|
||||
}
|
||||
|
||||
// ObjectLinksCmd object links command
|
||||
var ObjectLinksCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Tagline: "Output the links pointed to by the specified object.",
|
||||
@ -166,6 +168,7 @@ multihash.
|
||||
Type: &Object{},
|
||||
}
|
||||
|
||||
// ObjectGetCmd object get command
|
||||
var ObjectGetCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Tagline: "Get and serialize the DAG node named by <key>.",
|
||||
@ -271,6 +274,7 @@ Supported values are:
|
||||
},
|
||||
}
|
||||
|
||||
// ObjectStatCmd object stat command
|
||||
var ObjectStatCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Tagline: "Get stats for the DAG node named by <key>.",
|
||||
@ -333,6 +337,7 @@ var ObjectStatCmd = &cmds.Command{
|
||||
},
|
||||
}
|
||||
|
||||
// ObjectPutCmd object put command
|
||||
var ObjectPutCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Tagline: "Store input as a DAG object, print its key.",
|
||||
@ -433,6 +438,7 @@ And then run:
|
||||
Type: Object{},
|
||||
}
|
||||
|
||||
// ObjectNewCmd object new command
|
||||
var ObjectNewCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Tagline: "Create a new object from an ipfs template.",
|
||||
|
||||
@ -181,7 +181,7 @@ var rootROSubcommands = map[string]*cmds.Command{
|
||||
"get": ocmd.ObjectGetCmd,
|
||||
"stat": ocmd.ObjectStatCmd,
|
||||
},
|
||||
}),
|
||||
},
|
||||
"dag": {
|
||||
Subcommands: map[string]*cmds.Command{
|
||||
"get": dag.DagGetCmd,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user