Refactors hooks registration

This commit is contained in:
nemunaire 2015-11-02 20:19:12 +01:00
parent 49d7e4ced6
commit f39a0eac56
40 changed files with 202 additions and 168 deletions

View file

@ -66,7 +66,7 @@ def print_station_status(msg, station):
# MODULE INTERFACE ####################################################
@hook("cmd_hook", "velib",
@hook.command("velib",
help="gives available bikes and slots at the given station",
help_usage={
"STATION_ID": "gives available bikes and slots at the station STATION_ID"