Enhance InitCommand Git configuration for improved usability

- Added `GIT_TERMINAL_PROMPT` environment variable set to `0` to suppress terminal prompts during Git operations.
- Redirected standard input to null to prevent any interactive prompts, ensuring smoother initialization processes.

These changes aim to enhance the user experience by streamlining the Git initialization workflow.
This commit is contained in:
Joe 2026-02-19 04:47:35 -06:00
parent a071d1f0df
commit 8d17b1de1f

View file

@ -163,8 +163,10 @@ impl InitCommand {
".cursor",
])
.current_dir(&base_path)
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())
.env("GIT_TERMINAL_PROMPT", "0")
.status();
match result {