Skip to content

Conversation

@srexrg
Copy link

@srexrg srexrg commented Nov 27, 2025

  • Added the confirmMainOverwrite function to prompt the user for confirmation before overwriting an existing main.go file. The function checks if the file exists and asks for explicit user consent via stdin. (cmd/project.go)
  • Updated the Create method in the Project struct to call confirmMainOverwrite before creating main.go, aborting the operation if the user declines. (cmd/project.go)

Fixes #112

image

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

init flag is overwriting main without prompting about it

2 participants