Source code for galaxy.jobs.runners.util.cli.factory

try:
    from galaxy.jobs.runners.util.cli import (
        CliInterface,
        split_params,
    )
except ImportError:
    from pulsar.managers.util.cli import (  # type: ignore[no-redef]
        CliInterface,
        split_params,
    )


[docs]def build_cli_interface(): return CliInterface()
[docs]def get_shell(params): cli_interface = build_cli_interface() shell_params, _ = split_params(params) return cli_interface.get_shell_plugin(shell_params)