Skip to content

Commit 26ff632

Browse files
committed
chore: remove astrbot-rs
1 parent 8310ade commit 26ff632

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

astrbot/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import sys
43
from typing import TYPE_CHECKING, Any
54

65
if TYPE_CHECKING:
@@ -11,16 +10,9 @@
1110

1211
def __getattr__(name: str) -> Any:
1312
if name == "cli":
14-
from .cli.__main__ import cli
13+
from astrbot.cli.__main__ import cli
1514

1615
return cli()
17-
if name == "cli_rs":
18-
from .rust._core import cli
19-
20-
def cli_rs_wrapper() -> None:
21-
return cli(sys.argv)
22-
23-
return cli_rs_wrapper
2416

2517
if name == "logger":
2618
from .core import logger

astrbot/cli/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
__version__ = metadata.version("AstrBot")
55
except metadata.PackageNotFoundError:
66
__version__ = "unknown"
7+
8+
from astrbot.cli.__main__ import cli
9+
10+
__all__ = ["cli"]

0 commit comments

Comments
 (0)