Skip to content

Commit

Permalink
dag get should be a read only command
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jbenet committed Dec 13, 2016
1 parent 4cb236c commit 3d24d75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

1 comment on commit 3d24d75

@GitCop
Copy link

@GitCop GitCop commented on 3d24d75 Dec 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

Please sign in to comment.