from yardstick.cmd.commands import plugin
from yardstick.cmd.commands import env
from yardstick.cmd.commands import report
+from yardstick.common import import_tools
+
CONF = cfg.CONF
cli_opts = [
return None
-class YardstickCLI(): # pragma: no cover
+@import_tools.decorator_banned_modules
+class YardstickCLI(object): # pragma: no cover
"""Command-line interface to yardstick"""
# Command categories
# register subcommands to parse additional command line arguments
def parser(subparsers):
- self._add_command_parsers(YardstickCLI.categories, subparsers)
+ self._add_command_parsers(self.categories, subparsers)
category_opt = cfg.SubCommandOpt("category",
title="Command categories",
if CONF.debug:
_LOG_STREAM_HDLR.setLevel(logging.DEBUG)
- def _dispath_func_notask(self):
+ def _dispatch_func_notask(self):
# dispatch to category parser
func = CONF.category.func
func(CONF.category)
- def _dispath_func_task(self, task_id):
+ def _dispatch_func_task(self, task_id):
# dispatch to category parser
func = CONF.category.func
self._handle_global_opts()
- self._dispath_func_notask()
+ self._dispatch_func_notask()
finally:
self._clear_config_opts()
self._handle_global_opts()
- self._dispath_func_task(task_id)
+ self._dispatch_func_task(task_id)
finally:
self._clear_config_opts()