@cryptotaxi247 / kubo / commits / 188bf779d

Removed cmdInvocation.root

Matt Bell committed Nov 12, 2014 at 22:58 UTC 188bf779dbdc27ad2ec2a3c30fa8ef1ab53f5000
1 file changed +2 -3
cmd/ipfs2/main.go
+2 -3
@@ -36,7 +36,6 @@ const (
36 type cmdInvocation struct {
37 path []string
38 cmd *cmds.Command
39 - root *cmds.Command
39 req cmds.Request
40 }
41
@@ -64,7 +63,7 @@ func main() {
63 helpFunc = cmdsCli.LongHelp
64 }
65
67 - helpFunc("ipfs", invoc.root, invoc.path, os.Stderr)
66 + helpFunc("ipfs", Root, invoc.path, os.Stderr)
67 }
68
69 // parse the commandline into a command invocation
@@ -145,7 +144,7 @@ func (i *cmdInvocation) Run() (output io.Reader, err error) {
144 defer stopProfilingFunc() // to be executed as late as possible
145 }
146
148 - res, err := callCommand(i.req, i.root)
147 + res, err := callCommand(i.req, Root)
148 if err != nil {
149 return nil, err
150 }