-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
After generator runs, print a helpful message #184
Comments
I think whoever attempts this can leverage the work @aaronvb has done in this PR: #158 (comment) Perhaps we just rename |
If the message is predefined we can create a file with the helpful message and output it with readme 'filename'. http://guides.rubyonrails.org/generators.html#readme That leads me to: what will the helpful message be? Aaron Van Bokhoven
|
@aaronvb, can you try v2 (preferably the branch, or maybe rc1)? after the generator runs, we need to:
There's probably more... |
@justin808 @robwise if we go with a dynamic helpful message at the end, I think the best approach is another singleton like the errors, that we can populate based on what options were set. If you think the message will be static and same for all generator options, a simple text file printed at the end could suffice. |
@aaronvb sounds good to me |
@robwise @justin808 I'll work on this using @robwise suggestion to use another singleton like GeneratorErrors to create a helpful message at the end. That way we can tailor the helpful message based on the generator options selected. |
v2 is out. We need to do this. @aaronvb if you check out the tutorial in the /docs, you can see what we should print. |
@justin808 @robwise Here are the two examples explained in my previous comment. Using GeneratorMessagesThis method uses Base Install
Base Install with Redux
Using a README filehttp://guides.rubyonrails.org/generators.html#readme This method is not dynamic as it uses a static README file to print the message at the end. Styling for the messages taken from https://github.com/plataformatec/devise/blob/master/lib/generators/templates/README |
@aaronvb Have you got this one. These suggestions look awesome. |
Dynamic is definitely cooler! Good job Aaron! |
Thanks for the feedback! I'll do a PR for the dynamic version Today. Aaron Van Bokhoven
|
Closing this 👍 |
This what I see after running the generator on the v2 branch (CC: @aaronvb)
The text was updated successfully, but these errors were encountered: