We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
建议: 要是能用配置对象能实例化picgo就更好了 类似:
const conf = { "picBed": { "uploader": "smms" } } const picgo = new PicGo(conf)
感觉这样拓展起来比较方便。
The text was updated successfully, but these errors were encountered:
一开始做的时候是用配置对象实例化的。
但是后来引入了插件以及需要持久化存储配置项等所以改成了需要至少一个配置文件,并围绕这个配置文件所在路径扩展插件等一系列操作。目前整体结构都是在这个基础之上做的,所以应该是不会改变。
Sorry, something went wrong.
最近有个新思路来「曲线」实现你说的这个功能:
https://github.com/PicGo/vs-picgo/blob/dev/src/extension.ts#L208
利用PicGo提供的setConfig方法,在实例化后可以更改配置达到用配置对象来配置PicGo的目的。
setConfig
No branches or pull requests
建议: 要是能用配置对象能实例化picgo就更好了
类似:
感觉这样拓展起来比较方便。
The text was updated successfully, but these errors were encountered: