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

Recursive Variables #247

Closed
kferrone opened this issue Sep 7, 2018 · 7 comments
Closed

Recursive Variables #247

kferrone opened this issue Sep 7, 2018 · 7 comments

Comments

@kferrone
Copy link

kferrone commented Sep 7, 2018

Would be nice to have recursive variables so one variable can be made up of more than one variable.

Example:

@host = 'localhost'
@port = '8080'
@url = http://{{host}}:{{port}}

GET {{url}}/msg HTTP/1.1

Unfortunately I get an error like below instead:

Invalid URI "http:///%7B%7Bh%7D%7D:%7B%7Bp%7D%7D/msg"

Keep up the awesomeness!
Thanks for hearing me out.

@Huachao
Copy link
Owner

Huachao commented Sep 7, 2018

@kferrone I am sorry that it's not supported that file variables reference other file variables, and I am still working on this feature.

@kferrone
Copy link
Author

kferrone commented Sep 7, 2018

Good to hear you are working on it. I'll keep an eye out. Cheers!

@pvoisin
Copy link

pvoisin commented Nov 7, 2018

Hello! Any update on this? It'd be really, really useful (not to say "necessary"... :))
Need any help on that?

@Huachao
Copy link
Owner

Huachao commented Nov 8, 2018

@pvoisin For file variable references other file variables are still working in progress

@Huachao
Copy link
Owner

Huachao commented Nov 21, 2018

@kferrone @pvoisin @thehig @RafaelAdao @jianwu @druppelt I have implemented the feature that file variables can reference other variables as you described in the issue, and it will be published in next release. @kferrone one thing to notice in the example you illustrated before, you need to remove the single quote in the variable value, since the variable replacement logic will leave the value as is. Finally, thanks for your great suggestion.

@Huachao Huachao closed this as completed Nov 21, 2018
@kferrone
Copy link
Author

Wicked good! I'll be enjoying this new feature.

@Huachao
Copy link
Owner

Huachao commented Dec 2, 2018

@kferrone @pvoisin @thehig @RafaelAdao @jianwu @druppelt you can try the latest version 0.20.4 to verify

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

No branches or pull requests

3 participants