From a12988f095a5395960340d50116206e94b38441b Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 26 Oct 2012 16:00:53 +0100 Subject: Remove hello-plugin We have several plugins now that can be used as examples, and since cliapp does not yet support hiding commands Morph currently has a futile 'morph hello' command listed in --help. --- morphlib/plugins/hello_plugin.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 morphlib/plugins/hello_plugin.py (limited to 'morphlib/plugins') diff --git a/morphlib/plugins/hello_plugin.py b/morphlib/plugins/hello_plugin.py deleted file mode 100644 index 85fbdf28..00000000 --- a/morphlib/plugins/hello_plugin.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (C) 2012 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - -import cliapp - - -class Hello(cliapp.Plugin): - - def enable(self): - self.app.add_subcommand('hello', self.hello, arg_synopsis='') - - def disable(self): - pass - - def hello(self, args): - self.app.output.write('hello, world\n') -- cgit v1.2.1