Mercurial > repos > shellac > sam_consensus_v3
diff env/lib/python3.9/site-packages/planemo/commands/cmd_shed_serve.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/env/lib/python3.9/site-packages/planemo/commands/cmd_shed_serve.py Mon Mar 22 18:12:50 2021 +0000 @@ -0,0 +1,34 @@ +"""Module describing the planemo ``shed_serve`` command.""" +import click + +from planemo import io +from planemo import options +from planemo import shed +from planemo.cli import command_function +from planemo.galaxy import shed_serve +from planemo.galaxy.serve import sleep_for_serve + + +@click.command("shed_serve") +@options.shed_read_options() +@options.galaxy_serve_options() +@click.option( + "--skip_dependencies", + is_flag=True, + help="Do not install shed dependencies as part of repository installation." +) +@command_function +def cli(ctx, paths, **kwds): + """Launch Galaxy with Tool Shed dependencies. + + This command will start a Galaxy instance configured to target the + specified shed, find published artifacts (tools and dependencies) + corresponding to command-line arguments and ``.shed.yml`` file(s), + install these artifacts, and serve a Galaxy instances that can be + logged into and explored interactively. + """ + kwds['galaxy_skip_client_build'] = kwds.pop("skip_client_build", False) + install_args_list = shed.install_arg_lists(ctx, paths, **kwds) + with shed_serve(ctx, install_args_list, **kwds) as config: + io.info("Galaxy running with tools installed at %s" % config.galaxy_url) + sleep_for_serve()