view env/lib/python3.9/site-packages/planemo/commands/cmd_open.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 source

"""Module describing the planemo ``docs`` command."""
import click

from planemo.cli import command_function


@click.command("docs")
@click.argument(
    "path",
    metavar="PATH",
    type=click.Path(
        exists=True,
        file_okay=True,
        dir_okay=False,
        readable=True,
        resolve_path=True,
    ),
    default="tool_test_output.html",
)
@command_function
def cli(ctx, path, **kwds):
    """Open latest Planemo test results in a web browser."""
    click.launch(path)