Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion rsocket/cli/command.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import asyncio
import logging
import ssl
import sys
from contextlib import asynccontextmanager
from dataclasses import dataclass
from enum import Enum, unique
from importlib.metadata import version as get_version
from typing import Optional, Type, Collection, List, Callable

import asyncclick as click
try:
import asyncclick as click
except ImportError:
print("This command requires the CLI extra.")
print("Install with: pip install rsocket[cli]")
sys.exit(1)

from rsocket.awaitable.awaitable_rsocket import AwaitableRSocket
from rsocket.extensions.helpers import route, composite, authenticate_simple, authenticate_bearer
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ channels =
asyncwebsockets = asyncwebsockets>=0.9.4

[options.entry_points]
cli.console_scripts =
console_scripts =
rsocket-py = rsocket.cli.command:command

[tool:pytest]
Expand Down
Loading