Open idagelic opened 1 month ago
Im all for this, but carful you need a "new" flag in case you want a new ws with the same repo (which i often do when doing demos)
NOTE - again think the "--code" flag should be replaced with a "noIDE" flag and on create it should open the IDE by default
Is your feature request related to a problem? Please describe. As mentioned in #859 people might try to intuitively use daytona code for creating or expect it to default to an existing project.
Right now running
daytona create <GIT_REPO>
will try to find the user's already configured project config for the given repo and use it to create a workspace.Describe the solution you'd like I propose
daytona code <GIT_REPO>
to find an existing workspace that has the<GIT_REPO>
project and attempt to code into it if there is only one. Also log a message telling the user what's happening.If there isn't, it should print out
"No such project found. Did you mean to run daytona create <GIT_REPO> --code instead?"