Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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())
Ejemplo n.º 3
0
def cli_main():
    plugin = NubiaSuzieqPlugin()
    shell = Nubia(name="suzieq",
                  plugin=plugin,
                  options=Options(persistent_history=True))
    sys.exit(shell.run())