From 23a68cdbdb2ad718febd66c90053384abbdf757d Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Thu, 18 Jan 2018 18:48:14 -0800 Subject: [PATCH] gateway: expose commands for js-libp2p delegated routing License: MIT Signed-off-by: Lars Gierth --- core/commands/root.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/commands/root.go b/core/commands/root.go index 9ed34a7f55a..ef95b15b53a 100644 --- a/core/commands/root.go +++ b/core/commands/root.go @@ -185,6 +185,18 @@ var rootROSubcommands = map[string]*cmds.Command{ }), "resolve": lgc.NewCommand(ResolveCmd), "version": lgc.NewCommand(VersionCmd), + "refs": lgc.NewCommand(RefsROCmd), + "dht": lgc.NewCommand(&oldcmds.Command{ + Subcommands: map[string]*oldcmds.Command{ + "findprovs": findProvidersDhtCmd, + "findpeer": findPeerDhtCmd, + }, + }), + "swarm": lgc.NewCommand(&oldcmds.Command{ + Subcommands: map[string]*oldcmds.Command{ + "connect": swarmConnectCmd, + }, + }), } func init() {