mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
26 lines
613 B
Go
26 lines
613 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
flag "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gonuts/flag"
|
|
commander "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander"
|
|
)
|
|
|
|
var cmdIpfsName = &commander.Command{
|
|
UsageLine: "name",
|
|
Short: "Ipfs namespace manipulation tools.",
|
|
Long: `ipfs name [publish|resolve] <ref/hash>`,
|
|
Run: addCmd,
|
|
Flag: *flag.NewFlagSet("ipfs-name", flag.ExitOnError),
|
|
Subcommands: []*commander.Command{
|
|
cmdIpfsPub,
|
|
cmdIpfsResolve,
|
|
},
|
|
}
|
|
|
|
func nameCmd(c *commander.Command, args []string) error {
|
|
fmt.Println(c.Long)
|
|
return nil
|
|
}
|