mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 18:34:32 +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,
|
||||
)
|
||||
|
||||
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue