1
0
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:
Juan Batiz-Benet
2015-06-19 20:17:21 -07:00
3 changed files with 4 additions and 4 deletions

View File

@ -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: `

View File

@ -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,
}, },
} }

View File

@ -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: `