commands/http: Error if trying to run private command
Matt Bell committed
Oct 30, 2014 at 22:00 UTC
cfa56dde8214ce7e52ec72a73d0ba09d95a661fd
1 file changed
+4
commands/http/parse.go
+4
@@ -31,6 +31,10 @@ 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
+
38
opts, args2 := parseOptions(r)
39
args = append(args, args2...)
40