mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +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"
|
||||
)
|
||||
|
||||
var ipnsCmd = &cmds.Command{
|
||||
var IpnsCmd = &cmds.Command{
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "Gets the value currently published at an IPNS name",
|
||||
ShortDescription: `
|
||||
|
@ -51,7 +51,7 @@ Resolve the value of another name:
|
||||
},
|
||||
|
||||
Subcommands: map[string]*cmds.Command{
|
||||
"publish": publishCmd,
|
||||
"resolve": ipnsCmd,
|
||||
"publish": PublishCmd,
|
||||
"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 publishCmd = &cmds.Command{
|
||||
var PublishCmd = &cmds.Command{
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "Publish an object to IPNS",
|
||||
ShortDescription: `
|
||||
|
Reference in New Issue
Block a user