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

[IDEA]spec(rails): Interactive rails g arguments #2142

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Zeko369
Copy link
Contributor

@Zeko369 Zeko369 commented Oct 19, 2023

This is a heavy MVP that's more of an idea but wanted to push it up to discuss

rails has really nice migration/model/scaffold generators that can take in arguments for columns

i.e. rails g model Post title:string likes:integer slug:string:uniq

My idea with this PR was to try and build the autocomplete generator that would for rails g model Post title suggest [title, title:string, title:string:uniq, title:integer ...]

If anyone has any ideas for a better approach / want's to use this in other specs so we should extract this or anything feel free to comment on this

@withfig-bot
Copy link
Collaborator

withfig-bot commented Oct 19, 2023

Overview

src/rails.ts:

Info:

URLs:

  • https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_ruby.svg
  • https://avatars.githubusercontent.com/u/4223?s=48&v=4

@withfig-bot
Copy link
Collaborator

Hello @Zeko369,
thank you very much for creating a Pull Request!
Here is a small checklist to get this PR merged as quickly as possible:

  • Do all subcommands / options which take arguments include the args property (args: {})?
  • Are all options modular? E.g. -a -u -x instead of -aux
  • Have all other checks passed?

Please add a 👍 as a reaction to this comment to show that you read this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants