microsoft / codetour

VS Code extension that allows you to record and play back guided tours of codebases, directly within the editor.
https://aka.ms/codetour
MIT License
4.36k stars 113 forks source link

How can I access env vars in steps? #201

Open synedra opened 3 years ago

synedra commented 3 years ago

I need to make links to a netlify host which is created during the tour. How can I set it and then make it available?

lostintangent commented 3 years ago

There's not currently a way to do this, but we could add something. Would you simply need a way to reference an env var, as part of parting up a hyperlink? Maybe something like: Open Netlify, where {{NAME}} is interpolating an env var's value into the string?

NotMyself commented 3 years ago

👍 For this feature. Would be very handy.

jeluard commented 2 years ago

I have a similar need. @lostintangent Your proposed solution would be much appreciated!

davidgs commented 2 years ago

For setting env variables, it would be super handy to have a way for users to enter their values. I use:

>> export ENV_VAR=insert_your_value_here

But of course that opens a terminal and sets the variable to that dummy value. having it he a pseudo-form in the tour where the user could paste in their value, then hit the link and have it set the ENV variable would be 👨🏻‍🍳 💋

kazemicode commented 2 years ago

+1-ing this feature request!

lostintangent commented 2 years ago

Do folks generally feel like the {{NAME}} syntax would work well? If so, I can take a look at this later this week.