comparison env/lib/python3.9/site-packages/planemo/commands/cmd_shed_init.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_init`` command."""
2 import sys
3
4 import click
5
6 from planemo import options
7 from planemo import shed
8 from planemo.cli import command_function
9
10
11 @click.command("shed_init")
12 @options.optional_project_arg()
13 @click.option(
14 "--from_workflow",
15 type=click.Path(exists=True, file_okay=True, resolve_path=True),
16 help=('Attempt to generate repository dependencies from specified '
17 'workflow.')
18 )
19 @click.option(
20 "--description",
21 help='Specify repository description for .shed.yml.'
22 )
23 @click.option(
24 "--long_description",
25 help='Specify repository long_description for .shed.yml.'
26 )
27 @click.option(
28 "--remote_repository_url",
29 help='Specify repository remote_repository_url for .shed.yml.'
30 )
31 @click.option(
32 "--homepage_url",
33 help='Specify repository homepage_url for .shed.yml.'
34 )
35 @click.option(
36 "--category",
37 multiple=True,
38 help='Specify repository category for .shed.yml (may specify multiple).',
39 type=click.Choice(shed.CURRENT_CATEGORIES)
40 )
41 @options.shed_repo_options()
42 @options.force_option()
43 @command_function
44 def cli(ctx, path, **kwds):
45 """Bootstrap new Tool Shed .shed.yml file.
46
47 This Tool Shed configuration file is used by other ``planemo`` commands
48 such as ``shed_lint``, ``shed_create``, ``shed_upload``, and ``shed_diff``
49 to manage repositories in a Galaxy Tool Shed.
50 """
51 exit_code = shed.shed_init(ctx, path, **kwds)
52 sys.exit(exit_code)