Skip to content

Suggest: cobra-cli should detect main.go file wether exists or not #2318

@amone-bit

Description

@amone-bit

When I use cobra-cli init, it will overwrite my main.go file. Suggest first detect main.go file wether exists or not rather than overwrite it directly. I think it is dangerous, if main.go file has something important content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions