-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't overwrite existing ahoy.yml on init #4
Comments
This is a good idea, or at least have it check first, but you can actually update this yourself. If you implement an "init" command in .ahoy.yml, you can have it do (or not do) anything you want to. Example: commands:
init:
cmd: echo "These aren't the droids you're looking for.."
usage: Don't do anything commands:
init:
cmd: ls .ahoy.yml || wget $MY_INIT_FILE -O ./.ahoy.yml
usage: Download my own init file from elsewhere, but only if a local one doesn't exist. We should at least add that to the examples for now. |
This issue is still present in Ahoy 2 - running |
Shows a warning and a confirmation prompt when running `ahoy init` if an `.ahoy.yml` file already exists in the current directory and would otherwise be overwritten. BREAKING CHANGE: The warning prompt requires user input, so this may require updating of e.g. scripted calls to `ahoy init`. The prompt can be overruled by passing the "force" flag, e.g. `ahoy init --force`
fix!: [#4] Show overwrite warning for `ahoy init`
Closing as this is fixed with #97 |
init
should check for an existing .ahoy.yml file and prompt for overwrite before doing so.The text was updated successfully, but these errors were encountered: