Pass Hooke instance to CommandEngine.run(), not UserInterface.run().
authorW. Trevor King <wking@drexel.edu>
Mon, 10 May 2010 16:43:05 +0000 (12:43 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 10 May 2010 16:43:05 +0000 (12:43 -0400)
commit627202025131002a0ceb1d96857164355fde020c
treef2bd817e377bb7cd500dd883362b0e3e2fb1e750
parentf3ac0ea3dcdfc00d673e52effb74b6e9341e3add
Pass Hooke instance to CommandEngine.run(), not UserInterface.run().

User interface just needs its configuration (already setup in
  Hooke.load_ui() -> ui.load_ui(self.config)
) and a read-only list of commands.  Giving the Hooke instance to
CommandEngine allows the commands to work on the Hooke instance
directly.  This makes user interfaces less intelligent (i.e. easier to
write), and more consistent (because they all depend on the same
commands engine.)
hooke/command.py
hooke/engine.py
hooke/hooke.py
hooke/hooke_cli.py
hooke/plugin/cut.py
hooke/plugin/playlist.py
hooke/ui/commandline.py