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

Dynamically setting environment variables based on response Headers #87

Closed
renata-amutio-herrero opened this issue Jul 30, 2024 · 1 comment · Fixed by #89
Closed

Dynamically setting environment variables based on response Headers #87

renata-amutio-herrero opened this issue Jul 30, 2024 · 1 comment · Fixed by #89
Assignees
Labels
enhancement New feature or request

Comments

@renata-amutio-herrero
Copy link

Is it possible to set dinamically environment variables using the headers of the response?

@gorillamoe
Copy link
Member

This is currently not possible (in fact it would be possible, but pretty complicated..), but once we have #66, it's pretty easy.

I can totally see me implementing an interim solution in the meantime.

If you can't wait and need a way to have this right away, you can look at
https://kulala.mwco.app/docs/usage/dynamically-setting-environment-variables-based-on-response-json#with-external-command

Where you substitute jq with any homemade script you want.

The script needs to take the contents of .local/share/nvim/tmp/kulala/headers.txt and parse them and return the header you want.

@gorillamoe gorillamoe self-assigned this Jul 30, 2024
@gorillamoe gorillamoe added the enhancement New feature or request label Jul 30, 2024
gorillamoe added a commit that referenced this issue Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants