Mercurial > repos > shellac > sam_consensus_v3
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 """Module describing the planemo ``shed_serve`` command.""" | |
2 import click | |
3 | |
4 from planemo import io | |
5 from planemo import options | |
6 from planemo import shed | |
7 from planemo.cli import command_function | |
8 from planemo.galaxy import shed_serve | |
9 from planemo.galaxy.serve import sleep_for_serve | |
10 | |
11 | |
12 @click.command("shed_serve") | |
13 @options.shed_read_options() | |
14 @options.galaxy_serve_options() | |
15 @click.option( | |
16 "--skip_dependencies", | |
17 is_flag=True, | |
18 help="Do not install shed dependencies as part of repository installation." | |
19 ) | |
20 @command_function | |
21 def cli(ctx, paths, **kwds): | |
22 """Launch Galaxy with Tool Shed dependencies. | |
23 | |
24 This command will start a Galaxy instance configured to target the | |
25 specified shed, find published artifacts (tools and dependencies) | |
26 corresponding to command-line arguments and ``.shed.yml`` file(s), | |
27 install these artifacts, and serve a Galaxy instances that can be | |
28 logged into and explored interactively. | |
29 """ | |
30 kwds['galaxy_skip_client_build'] = kwds.pop("skip_client_build", False) | |
31 install_args_list = shed.install_arg_lists(ctx, paths, **kwds) | |
32 with shed_serve(ctx, install_args_list, **kwds) as config: | |
33 io.info("Galaxy running with tools installed at %s" % config.galaxy_url) | |
34 sleep_for_serve() |