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

Be more pro-active in suggesting to initialize an uninitialized project #1386

Open
vpetrovykh opened this issue Oct 23, 2024 · 0 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@vpetrovykh
Copy link
Member

Currently if you run edgedb inside an uninitialized project that already has an edgedb.toml you get an error:

$ edgedb
edgedb error: project is not initialized and no connection options are specified
  Hint: Run `edgedb project init` or use any of `-H`, `-P`, `-I` arguments to specify connection parameters. See `--help` for details

However, the CLI could instead ask the user if they want to initialize the project now. Something like:

Found `edgedb.toml` but the project is not initialized. Would you like to initialize it now? (y/N)

This prompt to initialize the project probably should default to "No" because it's not necessarily something you want to accidentally do (it's not a lightweight operation).

@vpetrovykh vpetrovykh added the documentation Improvements or additions to documentation label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant