Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add a prompt around the graduate script and change it from graduate to eject. #12

Merged
merged 1 commit into from
Jul 17, 2016
Merged

Conversation

eanplatter
Copy link
Contributor

This PR changes the name of the graduate command to "eject" and fixes #9.

It also adds a prompt to the script so that a user doesn't accidentally eject themselves.

Screenshot of the prompt:
screen shot 2016-07-17 at 5 09 54 pm

} else {
console.log('Close one! Eject aborted.')
}
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't exactly sure if this was a faux pas to put custom script code in the bin/. If it is I can move it into the script itself. >.<

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this at the beginning of scripts/eject.js and process.exit(1) if the user says no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely, rebase inbound.

@ghost ghost added CLA Signed labels Jul 17, 2016
@@ -0,0 +1 @@
{"name":"omg","version":"0.0.1","private":true}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dang you're too fast for me :)

@vjeux vjeux merged commit bb50351 into facebook:master Jul 17, 2016
@vjeux
Copy link
Contributor

vjeux commented Jul 17, 2016

Yay! Thanks

vjeux pushed a commit that referenced this pull request Jul 18, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename "graduate" to "eject"
3 participants