Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何列出项目中已安装的插件? #138

Open
the-eric-kwok opened this issue Dec 5, 2024 · 4 comments
Open

如何列出项目中已安装的插件? #138

the-eric-kwok opened this issue Dec 5, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@the-eric-kwok
Copy link

期待有一个 nb plugin list 的命令来做这件事
此外,移除插件和更新插件操作从已安装的插件列表中多选会容易很多

@yanyongyu
Copy link
Member

暂时没有反查功能,因为目前pyproject里存储的信息不足以反查。

@the-eric-kwok
Copy link
Author

[project]
name = "nb_bot"
version = "0.1.0"
description = "nb_bot"
readme = "README.md"
requires-python = ">=3.9, <4.0"

[tool.nonebot]
adapters = [
    { name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
]
plugins = ["nonebot_plugin_autoreply", "nonebot_plugin_withdraw"]
plugin_dirs = []
builtin_plugins = ["echo"]

目前我看到我的 pyproject.toml 文件中记录了 plugins 数组,似乎是有做记录的?但不确定好不好实现,如果不好实现的话这个信息放在这里给后来者做个参考。

@yanyongyu yanyongyu added the enhancement New feature or request label Dec 5, 2024
@fkcptlst
Copy link

fkcptlst commented Jan 9, 2025

最好再来一个一键从pyproject.toml安装所有插件,方便部署

@yanyongyu
Copy link
Member

@fkcptlst 部署还是推荐使用包管理器从 lock 恢复环境。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants