-
Notifications
You must be signed in to change notification settings - Fork 256
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
cargo shuttle init
does not handle directory argument properly
#665
Comments
I’ll sort this |
Also, I noticed that, when I create a new project, the name in Cargo.toml seems to be wrong:
Should I create a new issue? |
As of #706, which will be released on monday, the directory argument will now be properly handled. It will not error, it will create the dir and present the path to it in the Regarding the naming @d2weber, yes, I think an issue for that is good. Did it really name your project "pwd"? 😂 |
Great!
This defeats the purpose of having the command line argument...? So I think no.
I also think this is not necessary, since basically all "init" commands work this way. Other commentsI just remembered: The prompt for project name could use a reminder to The crate name that gets put into Cargo.toml might be incorrect: When doing init with project name TLDR; The crate shall be named the same as the project OR a Shuttle.toml should be generated with proper name OR/AND the init command shall prompt the user for a new project name if the name already existed. |
This is great, thanks @jonaro00! So to summarize the name fixes:
Would you mind opening a new issue for this? And of course, if you'd like to work on this yourself we'd be happy to answer any questions you may have 🙂 |
On second thought, we should review #705 before opening another issue for init. I'm also closing this issue since the path issue has been resolved. |
First invocation: The init command fails when the directory does not exist.
Second invocation: When directory exists, the command still asks for directory, even though it was provided. I manually typed it again.
Env: WSL 2, Ubuntu 22.04
Shuttle: 0.11.0
Rust and cargo: 1.66.1
The text was updated successfully, but these errors were encountered: