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

plugin 中如何 使用 values? #1083

Open
Wangggym opened this issue May 20, 2024 · 3 comments
Open

plugin 中如何 使用 values? #1083

Wangggym opened this issue May 20, 2024 · 3 comments

Comments

@Wangggym
Copy link

No description provided.

@avwo
Copy link
Owner

avwo commented May 20, 2024

有很多种方式,你要实现什么功能?
https://github.com/whistle-plugins/whistle.inspect/blob/master/_values.txt

@Wangggym
Copy link
Author

谢谢大佬,但是好像是压缩的 看不太懂, 主要就是在plugin 中 使用 values 变量,避免重复声明,有些数据复制起来也比较麻烦

@avwo
Copy link
Owner

avwo commented May 21, 2024

可以把内容放到插件项目里面的某个文件,再通过相对于插件根目录的相对路径引用,如 ‘file://assets/test.json‘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants