Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/planemo/commands/cmd_open.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
| author | shellac |
|---|---|
| date | Sat, 02 May 2020 07:14:21 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:26e78fe6e8c4 |
|---|---|
| 1 """Module describing the planemo ``docs`` command.""" | |
| 2 import click | |
| 3 | |
| 4 from planemo.cli import command_function | |
| 5 | |
| 6 | |
| 7 @click.command("docs") | |
| 8 @click.argument( | |
| 9 "path", | |
| 10 metavar="PATH", | |
| 11 type=click.Path( | |
| 12 exists=True, | |
| 13 file_okay=True, | |
| 14 dir_okay=False, | |
| 15 readable=True, | |
| 16 resolve_path=True, | |
| 17 ), | |
| 18 default="tool_test_output.html", | |
| 19 ) | |
| 20 @command_function | |
| 21 def cli(ctx, path, **kwds): | |
| 22 """Open latest Planemo test results in a web browser.""" | |
| 23 click.launch(path) |
