geldata / geldata/gel-cli

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

Open
#1,386 0 comments 1 reaction 0 assignees View on GitHub
documentation
Dominant language
Rust
Stars
175
Forks
32
PR merge metrics
No merged PRs in 30d

Description

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).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the CLI path that emits the shown "project is not initialized" error and inspect how `edgedb project init` is invoked. Done means an uninitialized project with `edgedb.toml` prompts for initialization, defaults to No, and only initializes after confirmation; verify the existing connection-option behavior remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.