spf13/cobra-cli

feature: cobra-cli should not overwrite an existing main.go file if it already exists

Opened this issue · 2 comments

When running cobra-cli init on an existing project with a main.go, it will overwrite the main.go. I don't think this behavior should be a default. Could we add functionality to at least move the old file to something like main.go.old?

Related:

It should be possible to patch cobra-cli with the PR above, although the lack of a response is concerning. For now I have decided against using cobra-cli due to the lack of activity.

Hmm. Good to know thanks!