1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-23 21:47:52 +08:00

Removed cmdInvocation.root

This commit is contained in:
Matt Bell
2014-11-12 22:58:36 -08:00
committed by Juan Batiz-Benet
parent 7f24a9965f
commit 188bf779db

View File

@ -36,7 +36,6 @@ const (
type cmdInvocation struct { type cmdInvocation struct {
path []string path []string
cmd *cmds.Command cmd *cmds.Command
root *cmds.Command
req cmds.Request req cmds.Request
} }
@ -64,7 +63,7 @@ func main() {
helpFunc = cmdsCli.LongHelp helpFunc = cmdsCli.LongHelp
} }
helpFunc("ipfs", invoc.root, invoc.path, os.Stderr) helpFunc("ipfs", Root, invoc.path, os.Stderr)
} }
// parse the commandline into a command invocation // parse the commandline into a command invocation
@ -145,7 +144,7 @@ func (i *cmdInvocation) Run() (output io.Reader, err error) {
defer stopProfilingFunc() // to be executed as late as possible defer stopProfilingFunc() // to be executed as late as possible
} }
res, err := callCommand(i.req, i.root) res, err := callCommand(i.req, Root)
if err != nil { if err != nil {
return nil, err return nil, err
} }