nb_cli.handlers.meta
def draw_logo()
参数
empty
返回
- str
def get_nonebot_config()
参数
empty
返回
def get_project_root(cwd=None)
参数
cwd
(Path | None)
返回
- Path
def requires_project_root(func)
参数
func
((P) -> Coroutine[Any, Any, R])
返回
- (P) -> Coroutine[Any, Any, R]
async def get_default_python(cwd=None)
参数
cwd
(Path | None)
返回
- str
async def get_python_version(python_path=None, cwd=None)
参数
python_path
(str | None)cwd
(Path | None)
返回
- dict[str, int]
def requires_python(func)
参数
func
((P) -> Coroutine[Any, Any, R])
返回
- (P) -> Coroutine[Any, Any, R]
async def get_nonebot_version(python_path=None, cwd=None)
参数
python_path
(str | None)cwd
(Path | None)
返回
- str
def requires_nonebot(func)
参数
func
((P) -> Coroutine[Any, Any, R])
返回
- (P) -> Coroutine[Any, Any, R]
async def get_pip_version(python_path=None, cwd=None)
参数
python_path
(str | None)cwd
(Path | None)
返回
- str
def requires_pip(func)
参数
func
((P) -> Coroutine[Any, Any, R])
返回
- (P) -> Coroutine[Any, Any, R]