Skip to content

Commit 0aefbb6

Browse files
committed
Removed trogon feature in favor of sqlite-util-tui
Refs #648, #545
1 parent 04107d3 commit 0aefbb6

File tree

4 files changed

+1
-37
lines changed

4 files changed

+1
-37
lines changed

docs/_static/img/tui.png

-233 KB
Binary file not shown.

docs/cli.rst

+1-27
Original file line numberDiff line numberDiff line change
@@ -2781,30 +2781,4 @@ You can uninstall packages that were installed using ``sqlite-utils install`` wi
27812781
27822782
sqlite-utils uninstall beautifulsoup4
27832783
2784-
Use ``-y`` to skip the request for confirmation.
2785-
2786-
.. _cli_tui:
2787-
2788-
Experimental TUI
2789-
================
2790-
2791-
A TUI is a "text user interface" (or "terminal user interface") - a keyboard and mouse driven graphical interface running in your terminal.
2792-
2793-
``sqlite-utils`` has experimental support for a TUI for building command-line invocations, built on top of the `Trogon <https://github.com/Textualize/trogon/>`__ TUI library.
2794-
2795-
To enable this feature you will need to install the ``trogon`` dependency. You can do that like so:
2796-
2797-
.. code-block:: bash
2798-
2799-
sqlite-utils install trogon
2800-
2801-
Once installed, running the ``sqlite-utils tui`` command will launch the TUI interface:
2802-
2803-
.. code-block:: bash
2804-
2805-
sqlite-utils tui
2806-
2807-
You can then construct a command by selecting options from the menus, and execute it using ``Ctrl+R``.
2808-
2809-
.. image:: _static/img/tui.png
2810-
:alt: A TUI interface for sqlite-utils - the left column shows a list of commands, while the right panel has a form for constructing arguments to the add-column command.
2784+
Use ``-y`` to skip the request for confirmation.

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def get_long_description():
5050
"data-science-types",
5151
],
5252
"flake8": ["flake8"],
53-
"tui": ["trogon"],
5453
},
5554
entry_points="""
5655
[console_scripts]

sqlite_utils/cli.py

-9
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
TypeTracker,
3636
)
3737

38-
try:
39-
import trogon # type: ignore
40-
except ImportError:
41-
trogon = None
42-
4338

4439
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
4540

@@ -127,10 +122,6 @@ def cli():
127122
pass
128123

129124

130-
if trogon is not None:
131-
cli = trogon.tui()(cli)
132-
133-
134125
@cli.command()
135126
@click.argument(
136127
"path",

0 commit comments

Comments
 (0)