From e7ec4131589d5d387c4257bca76e91a17ad7e1a3 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sun, 16 Nov 2008 19:50:17 -0700 Subject: Moved plugins command from ipalib.cli to ipalib.plugins.f_misc --- ipalib/cli.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index dd20b365..fc58f2e9 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -381,29 +381,10 @@ class show_api(frontend.Application): self.__traverse_namespace(n, attr, lines, tab + 2) -class plugins(frontend.Application): - """Show all loaded plugins""" - - def run(self): - plugins = sorted(self.api.plugins, key=lambda o: o.plugin) - return tuple( - (p.plugin, p.bases) for p in plugins - ) - - def output_for_cli(self, textui, result, **kw): - textui.print_name(self.name) - for (plugin, bases) in result: - textui.print_indented( - '%s: %s' % (plugin, ', '.join(bases)) - ) - textui.print_count(result, '%d plugin loaded', '%s plugins loaded') - - cli_application_commands = ( help, console, show_api, - plugins, ) -- cgit