Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: core/enso/config.py
- ===================================================================
- --- core/enso/config.py (revision 23)
- +++ core/enso/config.py (working copy)
- @@ -64,4 +64,4 @@
- # List of modules/packages that support the plugin interface to
- # extend Enso. The plugins are loaded in the order that they
- # are specified in this list.
- -PLUGINS = ["enso.contrib.google"]
- +PLUGINS = ["enso.contrib.google","hello"]
- Index: core/hello.py
- ===================================================================
- --- core/hello.py (revision 0)
- +++ core/hello.py (revision 0)
- @@ -0,0 +1,16 @@
- +from enso.commands.manager import CommandManager
- +from enso.commands.interfaces import CommandObject
- +from enso.events import EventManager
- +from enso import messages
- +command_manager = CommandManager.get()
- +event_manager = EventManager.get()
- +
- +class AptGet(CommandObject):
- + def run(self):
- + messages.displayMessage("<p>Hello World!</p><caption>This was going to be an apt-get install script, but instead it became <command>hello</command>.</caption>")
- +
- +def load():
- + aptget = AptGet()
- + aptget.setDescription("prints hello in console")
- + command_manager.registerCommand("hello",aptget)
- +
Add Comment
Please, Sign In to add comment