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)
commit469e5f26e5a22ef15fae3f11fac096a96356ed6b
treea6544ad3caae6d4867a16f4a65f595ce8fd33a47
parent6ad86288a89e93f6887a8f770f6668586298a92e
parent8865593e31318b049cd14bef8f2db4c2e86116c3
Merge: src/doc/commands: use filters

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>