chore: remove astrbot-rs

This commit is contained in:
LIghtJUNction
2026-04-03 01:26:25 +08:00
parent 8310ade509
commit 26ff632831
2 changed files with 5 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
from __future__ import annotations
import sys
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
@@ -11,16 +10,9 @@ __all__ = ["logger"]
def __getattr__(name: str) -> Any:
if name == "cli":
from .cli.__main__ import cli
from astrbot.cli.__main__ import cli
return cli()
if name == "cli_rs":
from .rust._core import cli
def cli_rs_wrapper() -> None:
return cli(sys.argv)
return cli_rs_wrapper
if name == "logger":
from .core import logger

View File

@@ -4,3 +4,7 @@ try:
__version__ = metadata.version("AstrBot")
except metadata.PackageNotFoundError:
__version__ = "unknown"
from astrbot.cli.__main__ import cli
__all__ = ["cli"]