Thibault Jouan
0d0eac111c
Implement verbose status in Env
2015-04-09 21:43:57 +00:00
Thibault Jouan
98bfa6c218
Fix coding standards
2015-04-09 03:51:38 +00:00
Thibault Jouan
0ad00f3b77
Refactor Dispatcher
2015-04-09 03:49:26 +00:00
Thibault Jouan
6f8bb69c92
Force Display test double usage in Runner.run specs
...
We need to mock Display.new to return a test double with #open
disabled, in order to prevent the manager to initiate real connections
to current display and because we don't want to inject a Display
instance all the way down from Runner to Manager (at least not yet).
2015-04-09 03:23:12 +00:00
Thibault Jouan
ceac19b346
Quit on `mod1+q' key binding
...
* Loop our runner until it is "stopped";
* Use the event dispatcher to stop the runner on `mod1+q' key press;
* Tell the manager to grab the `q' key.
2015-04-09 00:30:13 +00:00
Thibault Jouan
224ae6be5f
Implement Runner#run_until
2015-04-09 00:30:13 +00:00
Thibault Jouan
c8f12af987
Implement Manager#handle
2015-04-09 00:30:13 +00:00
Thibault Jouan
498feb809e
Instanciate Manager with a mandatory Dispatcher
2015-04-09 00:30:13 +00:00
Thibault Jouan
7becda9f31
Implement Dispatcher#emit
2015-04-09 00:30:13 +00:00
Thibault Jouan
fd13accaf6
Assign a Dispatcher in new Runner instances
2015-04-09 00:30:13 +00:00
Thibault Jouan
585903240b
Implement Manager#handle_pending_events
2015-04-09 00:30:13 +00:00
Thibault Jouan
b354ffcd62
Add stopped status notion in Runner
2015-04-09 00:30:12 +00:00
Thibault Jouan
b4b4f086d4
Implement Manager#grab_key
2015-04-09 00:30:12 +00:00
Thibault Jouan
84ad217d5b
Implement a basic event dispatcher
2015-04-09 00:30:12 +00:00
Thibault Jouan
49fe77ddb1
Integrate our new Runner into CLI
2015-04-09 00:30:12 +00:00
Thibault Jouan
ea0034fd7e
Implement basic Runner
2015-04-09 00:30:12 +00:00
Thibault Jouan
cd76c4e270
Implement basic Manager
2015-04-09 00:30:12 +00:00
Thibault Jouan
bc2ab4b9fa
Fix coding standards (extra lines in specs)
2015-04-09 00:30:00 +00:00
Thibault Jouan
1b6a6f9cea
Refactor CLI specs
2015-04-09 00:30:00 +00:00
Thibault Jouan
304db803f3
Introduce Env to manage CLI env and config
2015-04-07 23:13:28 +00:00
Thibault Jouan
422a940eae
Implement basic CLI usage help
2015-04-07 21:56:49 +00:00