Skip to content
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

A CLI wizard for generating things #66

Open
raghubetina opened this issue Aug 21, 2019 · 0 comments
Open

A CLI wizard for generating things #66

raghubetina opened this issue Aug 21, 2019 · 0 comments
Labels

Comments

@raghubetina
Copy link
Contributor

raghubetina commented Aug 21, 2019

A CLI wizard to help students generate things; rails generate wizard should walk them through:

  • draft:model (rename to table?)
  • migration
  • draft:resource (rename to resource?)
  • draft:layout (rename to layout?)
  • account

It should be conversational, similar to web_git:

  • What do you want to do?
    1. Create just a table.
    2. Modify a table.
    3. Create a table and RCAVs to CRUD.
    4. Create a layout file (add option to name the file something other than application.html.erb)
    5. Create a table with password columns and sign-in/sign-out RCAVs.
  • Based on the response, present new options. E.g. if "Modify a table" is selected,
    1. What table do you want to modify? (If we can introspect and present options that would be great, otherwise they can type and we can normalize.)
    2. Do you want to add or remove a column (don't allow renaming due to Heroku/Postgres issues?)?
    3. Which column do you want to remove?
    4. etc
@raghubetina raghubetina changed the title Mock up interface for a CLI wizard for generating things A CLI wizard for generating things Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant