-
Notifications
You must be signed in to change notification settings - Fork 195
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
[Issue] Provide the option for a user to create a new directory to contain template code on azd init/up
#181
Comments
Love this idea. We should also have the option of specifying the target directory via an invocation parameter. |
+1 ! |
The technical reason for requiring the folder to be created first is because we were having issues with creating a directory and then changing the cwd to that dir. If we do this, then we need to ensure that either:
|
We have seen this repeatedly, it's a step that can be easily missed. Even for developers who read the Get Started/Readme. |
We already have the option We can improve the experience of using When not using What do you think |
My impression is that this should be part of the core flow for project initialization or running up. Especially for new developers, using My preferred user flow would be:
|
We're running into this today during our AI App template usability, and multiple folks did not create a folder, and then got a rude awakening to see that it copied into their current folder instead (and ran git init in it!) |
Hi! I am running into same issue too. I would like to help with this if needed. Maybe I can add option to create the folder during azd init flow, and prompt user to choose folder or use current one. Let me know if I can contribute PR! Thanks! |
Right now, a developer has to manually to create a new directory,
cd
into the directory and then runazd init/up
. If you don't follow this pattern, you can inadvertently download the template code into the current directory. I have personally done this many times and ended up with all the files/folders scattered across the wrong directory on my local machine 😩.On
azd init/up
, we should ask the developer if they'd like to create a new directory when downloading the template code (which is a common CLI pattern). Ify/yes
is input, we create a new directory and download the code in there (mirroring a git clone behaviour). Ifn/no
is input, we assume that the user has already created their own directory andcd
'd into it. The goal here would be to guide the developer more through theinit/up
process.The text was updated successfully, but these errors were encountered: