commands: Removed Command#Private field
Matt Bell committed
Oct 31, 2014 at 13:50 UTC
83b2ba00e9138d3e3e22c3d0775baa51cada61bc
2 files changed
-5
commands/command.go
-1
@@ -28,7 +28,6 @@ type Command struct {
28
Format Formatter
29
Type interface{}
30
Subcommands map[string]*Command
31
- Private bool
31
}
32
33
// ErrNotCallable signals a command that cannot be called.
commands/http/parse.go
-4
@@ -31,10 +31,6 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
31
cmd = sub
32
}
33
34
- if cmd.Private {
35
- return nil, ErrNotFound
36
- }
37
-
34
opts, args2 := parseOptions(r)
35
args = append(args, args2...)
36