mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-19 18:05:32 +08:00
commands: Removed Command#Private field
This commit is contained in:

committed by
Juan Batiz-Benet

parent
c0d3edd4f9
commit
83b2ba00e9
@ -28,7 +28,6 @@ type Command struct {
|
|||||||
Format Formatter
|
Format Formatter
|
||||||
Type interface{}
|
Type interface{}
|
||||||
Subcommands map[string]*Command
|
Subcommands map[string]*Command
|
||||||
Private bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrNotCallable signals a command that cannot be called.
|
// ErrNotCallable signals a command that cannot be called.
|
||||||
|
@ -31,10 +31,6 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
|
|||||||
cmd = sub
|
cmd = sub
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmd.Private {
|
|
||||||
return nil, ErrNotFound
|
|
||||||
}
|
|
||||||
|
|
||||||
opts, args2 := parseOptions(r)
|
opts, args2 := parseOptions(r)
|
||||||
args = append(args, args2...)
|
args = append(args, args2...)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user