simonw / datasette
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
tests/test_cli.py has changed.

@@ -354,7 +354,13 @@
Loading
354 354
@click.option("--version-note", help="Additional note to show on /-/versions")
355 355
@click.option("--help-config", is_flag=True, help="Show available config options")
356 356
@click.option("--pdb", is_flag=True, help="Launch debugger on any errors")
357 -
@click.option("-o", "--open", is_flag=True, help="Open Datasette in your web browser")
357 +
@click.option(
358 +
    "-o",
359 +
    "--open",
360 +
    "open_browser",
361 +
    is_flag=True,
362 +
    help="Open Datasette in your web browser",
363 +
)
358 364
def serve(
359 365
    files,
360 366
    immutable,
@@ -377,7 +383,7 @@
Loading
377 383
    version_note,
378 384
    help_config,
379 385
    pdb,
380 -
    open,
386 +
    open_browser,
381 387
    return_instance=False,
382 388
):
383 389
    """Serve up specified SQLite database files with a web UI"""
@@ -457,7 +463,7 @@
Loading
457 463
        print(url)
458 464
    else:
459 465
        url = "http://{}:{}/".format(host, port)
460 -
    if open:
466 +
    if open_browser:
461 467
        webbrowser.open(url)
462 468
    uvicorn.run(ds.app(), host=host, port=port, log_level="info", lifespan="on")
463 469
Files Coverage
datasette 84.27%
Project Totals (28 files) 84.27%
1
coverage:
2
  status:
3
    project:
4
      default:
5
        informational: true
6
    patch:
7
      default:
8
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading