Experimental TUI powered by Trogon

* sqlite-utils tui command if Trogon is installed, closes #545
* Documentation for trogon TUI
* Screenshot of TUI
* Ignore trogon mypy error
* only run flake8 on Python 3.8 or higher, closes #550
This commit is contained in:
Simon Willison 2023-05-21 11:41:56 -07:00 committed by GitHub
commit 718b0cba9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 55 additions and 4 deletions

View file

@ -33,6 +33,11 @@ from .utils import (
TypeTracker,
)
try:
import trogon # type: ignore
except ImportError:
trogon = None
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
@ -112,6 +117,10 @@ def cli():
pass
if trogon is not None:
cli = trogon.tui()(cli)
@cli.command()
@click.argument(
"path",