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

如何读 values 中的文件到script 中? #38

Open
Wangggym opened this issue Jul 20, 2024 · 9 comments
Open

如何读 values 中的文件到script 中? #38

Wangggym opened this issue Jul 20, 2024 · 9 comments

Comments

@Wangggym
Copy link

image

@avwo
Copy link
Member

avwo commented Jul 20, 2024

哪个 script 中

@Wangggym
Copy link
Author

image

@Wangggym
Copy link
Author

@avwo 另外还有个问题,做的values 和 Rule 可以和团队成员共享吗?比如类似 git 版本能力,如果可以这点应该有很多商业价值?

@avwo
Copy link
Member

avwo commented Jul 21, 2024

  1. 大部分操作直接设置规则即可无需自己处理请求
  2. script 插件没暴露 getValues 方法,这个我看下要不要加上
  3. 规则远程同步及共享功能后续会支持,你可以先通过 @https://xxxx @localfile @whistle.xxx/path/to 方式引入远程、本地、插件的规则:https://wproxy.org/whistle/rules/@.html

@Wangggym
Copy link
Author

@avwo 2 点,因为需要mock event-streaming 而现有的方法中没能提供,如果能把values 用到script 中就太好了

@Wangggym
Copy link
Author

Wangggym commented Jul 26, 2024

@avwo 或者 我有机会参加这个 特性贡献吗?how to do? (:

@avwo
Copy link
Member

avwo commented Jul 26, 2024

欢迎啊,你先看下项目

@Wangggym
Copy link
Author

好像插件都没有支持使用values?

@avwo
Copy link
Member

avwo commented Jul 27, 2024

插件的 options 有提供获取 getValues(cb) 的方法:https://github.com/avwo/whistle/blob/master/lib/plugins/load-plugin.js#L1556

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