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.34k stars 109 forks source link

Accept user input #195

Open synedra opened 2 years ago

synedra commented 2 years ago

I need to have the user set up a github remote for their repository. Is there some way I can get and then use information in subsequent steps?

lostintangent commented 2 years ago

This isn't currently possible. But in order to allow user input, the comment UX can actually allow replying. And so we could have a step, that indicates it expected input, and prompts the user to provide it. Then, we could have some way to reference the input in subsequent steps. Out of curiosity: how would you need to reference the variable? As part of a command call? In the markdown contents?

synedra commented 2 years ago

Basically they need to ‘git remote origin https://github.com//tiktok-clone https://github.com/%3CTHEIRUSERNAME%3E/tiktok-clone

For now I made a bash script that should work.

K

On Sep 2, 2021, at 11:43 AM, Jonathan Carter @.***> wrote:

This isn't currently possible. But in order to allow user input, the comment UX can actually allow replying. And so we could have a step, that indicates it expected input, and prompts the user to provide it. Then, we could have some way to reference the input in subsequent steps. Out of curiosity: how would you need to reference the variable? As part of a command call? In the markdown contents?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/codetour/issues/195#issuecomment-911958442, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOTDYHXRR4GXG6CQ6ISW4LT77AVJANCNFSM5DJWTT7A.