mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 04:44:26 +02:00
sqlite-utils tui command if Trogon is installed, refs #545
This commit is contained in:
parent
b3b100d7f5
commit
ec12b780d5
1 changed files with 9 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ from .utils import (
|
||||||
TypeTracker,
|
TypeTracker,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import trogon
|
||||||
|
except ImportError:
|
||||||
|
trogon = None
|
||||||
|
|
||||||
|
|
||||||
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
||||||
|
|
||||||
|
|
@ -112,6 +117,10 @@ def cli():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if trogon is not None:
|
||||||
|
cli = trogon.tui()(cli)
|
||||||
|
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
@click.argument(
|
@click.argument(
|
||||||
"path",
|
"path",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue