Merge: src/doc/commands: use filters
authorJean Privat <jean@pryen.org>
Tue, 26 Jun 2018 13:29:48 +0000 (09:29 -0400)
committerJean Privat <jean@pryen.org>
Tue, 26 Jun 2018 13:29:48 +0000 (09:29 -0400)
This PR allows the DocCommands to use ModelFilter.

With this, one can setup the filter used by a command from:
* The commands programmatic Nit interface
   ~~~nit
   var filter = new ModelFilter(accept_test = false)
   var cmd = new CmdParents(model, main, filter, mentity_name = "MyEntity")
   ~~~
* The string interface through the CommandParser
   ~~~raw
   [[parents: MyEntity | no-test]]
   ~~~
* The HTTP interface
   ~~~raw
   /children/MyEntity?no-test=true
   ~~~

Pull-Request: #2722
Reviewed-by: Jean Privat <jean@pryen.org>


Trivial merge