nb_cli.handlers.meta

  • 参数

    empty

  • 返回

    • str

def get_nonebot_config()

async def get_default_python()

  • 参数

    empty

  • 返回

    • str

async def get_python_version(python_path=None)

  • 参数

    • python_path (str | 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)

  • 参数

    • python_path (str | 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)

  • 参数

    • python_path (str | None)
  • 返回

    • str

def requires_pip(func)

  • 参数

    • func ((P) -> Coroutine[Any, Any, R])
  • 返回

    • (P) -> Coroutine[Any, Any, R]

async def load_module_data(module_type)

  • 重载

    1. (module_type) -> list[Adapter]

    • 参数

      • module_type (Literal['adapter'])
    • 返回

    2. (module_type) -> list[Plugin]

    • 参数

      • module_type (Literal['plugin'])
    • 返回

    3. (module_type) -> list[Driver]

    • 参数

      • module_type (Literal['driver'])
    • 返回

def format_package_results(hits, name_column_width=None, terminal_width=None)

  • 参数

    • hits (list[T])

    • name_column_width (int | None)

    • terminal_width (int | None)

  • 返回

    • str

async def terminate_process(process)

  • 参数

    • process (asyncio.subprocess.Process)
  • 返回

    • None

def ensure_process_terminated(func)

  • 参数

    • func ((P) -> Coroutine[Any, Any, asyncio.subprocess.Process])
  • 返回

    • (P) -> Coroutine[Any, Any, asyncio.subprocess.Process]