Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid default project name if destination is . #187

Closed
1 task done
rszamszur opened this issue Oct 12, 2022 · 0 comments 路 Fixed by #188
Closed
1 task done

Invalid default project name if destination is . #187

rszamszur opened this issue Oct 12, 2022 · 0 comments 路 Fixed by #188
Labels
bug Something isn't working

Comments

@rszamszur
Copy link
Member

rszamszur commented Oct 12, 2022

  • I have searched the issues of this repo and believe that this is not a duplicate.

Describe the bug

Default project name is invalid when given APP_PATH argument is ..

[rszamszur@draugr:~/sandbox]$ fastapi-mvc new .
馃帳 What's your project name?
Do not use dots or spaces in the name; just "A-Za-z0-9-_" please.
   .

Expected behavior

If APP_PATH argument is ., the default project name value should be it's parent directory name:

[rszamszur@draugr:~/sandbox]$ fastapi-mvc new .
馃帳 What's your project name?
Do not use dots or spaces in the name; just "A-Za-z0-9-_" please.
   sandbox

To Reproduce

Run: fastapi-mvc new .

Environment

  • Python version: 3.9.13
  • Operating System and version: Linux draugr 5.15.72 #1-NixOS SMP Wed Oct 5 08:39:44 UTC 2022 x86_64 GNU/Linux
  • fastapi-mvc version: 0.18.0

Additional context

Not sure what should happen in such a scenario:

[rszamszur@draugr:/]$ pwd
/
[rszamszur@draugr:/]$ fastapi-mvc new .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant