mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-17 01:49:15 +08:00
chore: remove astrbot-rs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -4,3 +4,7 @@ try:
|
||||
__version__ = metadata.version("AstrBot")
|
||||
except metadata.PackageNotFoundError:
|
||||
__version__ = "unknown"
|
||||
|
||||
from astrbot.cli.__main__ import cli
|
||||
|
||||
__all__ = ["cli"]
|
||||
|
||||
Reference in New Issue
Block a user