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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: Be strict about directory contents, Init new projects as git repo #553

Closed
jacobhq opened this issue Feb 10, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@jacobhq
Copy link
Member

jacobhq commented Feb 10, 2025

Is your feature request related to a problem? Please describe.

  • It's annoying to create a project in a directory with contents (eg home) accidentally
    • It's also annoying to be unable to create a project in a directory with contents
  • We should also init a git repo straight away

Describe the solution you'd like

  • Warn the user if the directory has contents (allow skip with a --force or --suppress-warnings cli flag)
  • We should also init a git repo straight away

Describe alternatives you've considered

No response

Additional context

This is from https://github.com/orgs/tuono-labs/projects/2/views/2?pane=issue&itemId=89204574.

I'm happy to work on this issue.

@jacobhq jacobhq added the enhancement New feature or request label Feb 10, 2025
@Valerioageno
Copy link
Member

It's annoying to create a project in a directory with contents (eg home) accidentally

That is true. Better to wait the test suite for the tuono new command before implementing new condition in the feature #411

I'm gonna open a task in the project

We should also init a git repo straight away

Agree. I created this task! #554
Drop a comment so I can assing you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants