def _setup_nubia(): from suzieq.cli.sq_nubia_plugin import NubiaSuzieqPlugin from nubia import Nubia # monkey patching -- there might be a better way plugin = NubiaSuzieqPlugin() plugin.create_context = create_context # this is just so that context can be created shell = Nubia(name='test', plugin=plugin)
def cli_main(): '''Kicks off the CLI run''' plugin = NubiaSuzieqPlugin() shell = Nubia(name="suzieq", plugin=plugin, options=Options(persistent_history=True), command_pkgs=sqcmds) sys.exit(shell.run())
def cli_main(): plugin = NubiaSuzieqPlugin() shell = Nubia(name="suzieq", plugin=plugin, options=Options(persistent_history=True)) sys.exit(shell.run())