From 3d24d75ddae7db840f28b8ca642e419bc958a5e3 Mon Sep 17 00:00:00 2001 From: jbenet Date: Tue, 13 Dec 2016 02:09:35 -0800 Subject: [PATCH] dag get should be a read only command added CmdDagGet to the read only command set. tried to add a test, but dag get needs tests in general License: MIT Signed-off-by: Juan Batiz-Benet --- core/commands/root.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/commands/root.go b/core/commands/root.go index 7070a2d27ec6..f477c3fc9139 100644 --- a/core/commands/root.go +++ b/core/commands/root.go @@ -6,6 +6,7 @@ import ( cmds "github.com/ipfs/go-ipfs/commands" dag "github.com/ipfs/go-ipfs/core/commands/dag" + dcmd "github.com/ipfs/go-ipfs/core/commands/dag" files "github.com/ipfs/go-ipfs/core/commands/files" ocmd "github.com/ipfs/go-ipfs/core/commands/object" unixfs "github.com/ipfs/go-ipfs/core/commands/unixfs" @@ -158,6 +159,11 @@ var rootROSubcommands = map[string]*cmds.Command{ "patch": ocmd.ObjectPatchCmd, }, }, + "dag": &cmds.Command{ + Subcommands: map[string]*cmds.Command{ + "get": dcmd.DagGetCmd, + }, + }, "refs": RefsROCmd, "resolve": ResolveCmd, "version": VersionCmd,