Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Transporter init should prompt before overwriting #320

Closed
codepope opened this issue Mar 22, 2017 · 0 comments · Fixed by #336
Closed

Transporter init should prompt before overwriting #320

codepope opened this issue Mar 22, 2017 · 0 comments · Fixed by #336

Comments

@codepope
Copy link
Contributor

codepope commented Mar 22, 2017

Bug report

System info:

  • 0.2.x and later

Reproducible Steps:

transporter init mongodb file
work on pipeline.js
transporter run
all works
accidentally cursor up to re-run and hit return on init
all your work is gone.

What did you expect to happened?

Kinda expected it but didn't want it.

What I'd hoped for was either

pipeline.js already exists - overwrite (y/n)? n
(day saved!)

or ...

copying pipeline.js to pipeline.js.old
writing pipeline.js

What actually happened?

END OF LINE FOR PIPELINE.JS

jipperinbham added a commit that referenced this issue Mar 24, 2017
if pipeline.js already exists, prompt user for y/n on whether to continue; also, only write example pipeline with all arguments

fixes #320
@ghost ghost assigned jipperinbham Mar 24, 2017
@ghost ghost added in progress and removed ready labels Mar 24, 2017
@ghost ghost added review and removed in progress labels Mar 24, 2017
@ghost ghost removed the review label Mar 24, 2017
jipperinbham added a commit that referenced this issue Mar 24, 2017
if pipeline.js already exists, prompt user for y/n on whether to continue; also, only write example pipeline with all arguments

fixes #320
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants