Skip to content

Commit

Permalink
added terminal-ui support via trogon
Browse files Browse the repository at this point in the history
  • Loading branch information
amenezes committed Sep 9, 2023
1 parent 9e89d94 commit aa7b88c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rabbit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .queue import Queue
from .subscribe import Subscribe

__version__ = "3.0.2"
__version__ = "3.1.0"
__all__ = [
"__version__",
"AioRabbitClient",
Expand Down
2 changes: 2 additions & 0 deletions rabbit/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from rich.logging import RichHandler
from rich.panel import Panel
from rich.table import Table
from trogon import tui

from rabbit import __version__
from rabbit.cli.consumer import Consumer
Expand All @@ -18,6 +19,7 @@
console = Console()


@tui(command="terminal-ui", help="Open terminal UI")
@click.group(context_settings=CONTEXT_SETTINGS)
@click.version_option(version=__version__)
def cli():
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ python_requires = >= 3.8.0
include_package_data = True

[options.extras_require]
cli = click>=8.1.3; rich>=12.6.0
all = click>=8.1.3; rich>=12.6.0
cli = click>=8.1.3; rich>=12.6.0; trogon>=0.5.0
all = click>=8.1.3; rich>=12.6.0; trogon>=0.5.0


[options.entry_points]
Expand Down

0 comments on commit aa7b88c

Please sign in to comment.