mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 09:34:03 +08:00
Merge pull request #1397 from ipfs/tk/public-name-commands
core/commands: Make IpnsCmd and PublishCmd public
This commit is contained in:
@ -10,7 +10,7 @@ import (
|
|||||||
u "github.com/ipfs/go-ipfs/util"
|
u "github.com/ipfs/go-ipfs/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ipnsCmd = &cmds.Command{
|
var IpnsCmd = &cmds.Command{
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Gets the value currently published at an IPNS name",
|
Tagline: "Gets the value currently published at an IPNS name",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -51,7 +51,7 @@ Resolve the value of another name:
|
|||||||
},
|
},
|
||||||
|
|
||||||
Subcommands: map[string]*cmds.Command{
|
Subcommands: map[string]*cmds.Command{
|
||||||
"publish": publishCmd,
|
"publish": PublishCmd,
|
||||||
"resolve": ipnsCmd,
|
"resolve": IpnsCmd,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
var errNotOnline = errors.New("This command must be run in online mode. Try running 'ipfs daemon' first.")
|
var errNotOnline = errors.New("This command must be run in online mode. Try running 'ipfs daemon' first.")
|
||||||
|
|
||||||
var publishCmd = &cmds.Command{
|
var PublishCmd = &cmds.Command{
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Publish an object to IPNS",
|
Tagline: "Publish an object to IPNS",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
Reference in New Issue
Block a user