Commit cfa56dde authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands/http: Error if trying to run private command

parent abcebb0b
......@@ -31,6 +31,10 @@ 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...)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment