cobra-cli
cobra-cli copied to clipboard
feature: cobra-cli should not overwrite an existing main.go file if it already exists
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:
- https://github.com/spf13/cobra-cli/issues/59
- https://github.com/spf13/cobra-cli/pull/68
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!