diff --git a/docs/_static/img/tui.png b/docs/_static/img/tui.png deleted file mode 100644 index 04cbeb1..0000000 Binary files a/docs/_static/img/tui.png and /dev/null differ diff --git a/docs/cli.rst b/docs/cli.rst index 4fa6042..3f657e0 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -2781,30 +2781,4 @@ You can uninstall packages that were installed using ``sqlite-utils install`` wi sqlite-utils uninstall beautifulsoup4 -Use ``-y`` to skip the request for confirmation. - -.. _cli_tui: - -Experimental TUI -================ - -A TUI is a "text user interface" (or "terminal user interface") - a keyboard and mouse driven graphical interface running in your terminal. - -``sqlite-utils`` has experimental support for a TUI for building command-line invocations, built on top of the `Trogon `__ TUI library. - -To enable this feature you will need to install the ``trogon`` dependency. You can do that like so: - -.. code-block:: bash - - sqlite-utils install trogon - -Once installed, running the ``sqlite-utils tui`` command will launch the TUI interface: - -.. code-block:: bash - - sqlite-utils tui - -You can then construct a command by selecting options from the menus, and execute it using ``Ctrl+R``. - -.. image:: _static/img/tui.png - :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. +Use ``-y`` to skip the request for confirmation. \ No newline at end of file diff --git a/setup.py b/setup.py index 1bd5fe1..c9ae427 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,6 @@ setup( "data-science-types", ], "flake8": ["flake8"], - "tui": ["trogon"], }, entry_points=""" [console_scripts] diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index cc2d86e..795e30d 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -35,11 +35,6 @@ from .utils import ( TypeTracker, ) -try: - import trogon # type: ignore -except ImportError: - trogon = None - CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"]) @@ -127,10 +122,6 @@ def cli(): pass -if trogon is not None: - cli = trogon.tui()(cli) - - @cli.command() @click.argument( "path",