We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8310ade commit 26ff632Copy full SHA for 26ff632
2 files changed
astrbot/__init__.py
@@ -1,6 +1,5 @@
1
from __future__ import annotations
2
3
-import sys
4
from typing import TYPE_CHECKING, Any
5
6
if TYPE_CHECKING:
@@ -11,16 +10,9 @@
11
10
12
def __getattr__(name: str) -> Any:
13
if name == "cli":
14
- from .cli.__main__ import cli
+ from astrbot.cli.__main__ import cli
15
16
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
24
25
if name == "logger":
26
from .core import logger
astrbot/cli/__init__.py
@@ -4,3 +4,7 @@
__version__ = metadata.version("AstrBot")
except metadata.PackageNotFoundError:
__version__ = "unknown"
7
+
8
+from astrbot.cli.__main__ import cli
9
+__all__ = ["cli"]
0 commit comments