Skip to content

Commit 15804be

Browse files
committed
Add --port option or serve and tool_factory.
1 parent 649b4a1 commit 15804be

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

planemo/commands/cmd_serve.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@click.command('serve')
99
@options.optional_tools_arg()
1010
@options.galaxy_root_option()
11+
@options.galaxy_port_option()
1112
@options.install_galaxy_option()
1213
@options.no_cache_galaxy_option()
1314
@options.no_cleanup_option()

planemo/commands/cmd_tool_factory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
@click.command('tool_factory')
1010
@options.galaxy_root_option()
11+
@options.galaxy_port_option()
1112
@options.install_galaxy_option()
1213
@options.no_cache_galaxy_option()
1314
@options.no_cleanup_option()

planemo/options.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ def galaxy_root_option():
3737
)
3838

3939

40+
def galaxy_port_option():
41+
return click.option(
42+
"--port",
43+
type=int,
44+
default="9090",
45+
help='Port to serve Galaxy on (default is 9090).'
46+
)
47+
48+
4049
def dependency_resolvers_option():
4150
return click.option(
4251
"--dependency_resolvers_config_file",

0 commit comments

Comments
 (0)