Skip to content

Avoid to override existing Changie config file if already exists #403

Answered by miniscruff
llaville asked this question in Ideas
Discussion options

You must be logged in to vote

Hmm correct, init does not make any attempt to not clobber existing files or folders. I am not sure how needed this feature is ( I mean with git you would probably just undo any changes and move on ) but I think not overriding existing values is a good idea. I would consider it a bug that running init again would override values.

My proposal would be:

  1. Init should check for a .changie.yaml and do nothing if a file is found, it should instead return an error and show a message
  2. A new --force option should be added to bypass this check

#404 was created to address the proposal

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@llaville
Comment options

@miniscruff
Comment options

Answer selected by llaville
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants