sqlite-utils tui command if Trogon is installed, refs #545

This commit is contained in:
Simon Willison 2023-05-21 07:10:20 -07:00
commit ec12b780d5

View file

@ -33,6 +33,11 @@ from .utils import (
TypeTracker,
)
try:
import trogon
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",