1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-20 02:21:48 +08:00

commands: Removed Command#Private field

This commit is contained in:
Matt Bell
2014-10-31 13:50:41 -07:00
committed by Juan Batiz-Benet
parent c0d3edd4f9
commit 83b2ba00e9
2 changed files with 0 additions and 5 deletions

View File

@ -28,7 +28,6 @@ type Command struct {
Format Formatter
Type interface{}
Subcommands map[string]*Command
Private bool
}
// ErrNotCallable signals a command that cannot be called.

View File

@ -31,10 +31,6 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
cmd = sub
}
if cmd.Private {
return nil, ErrNotFound
}
opts, args2 := parseOptions(r)
args = append(args, args2...)