diff options
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/plugins/hello_plugin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/morphlib/plugins/hello_plugin.py b/morphlib/plugins/hello_plugin.py index 5bd387db..b51c8b5c 100644 --- a/morphlib/plugins/hello_plugin.py +++ b/morphlib/plugins/hello_plugin.py @@ -20,5 +20,11 @@ import cliapp class Hello(cliapp.Plugin): def enable(self): - print "enable hello" + self.app.add_subcommand('hello', self.hello) + + def disable(self): + pass + + def hello(self, args): + self.app.output.write('hello, world\n') |