-
Notifications
You must be signed in to change notification settings - Fork 74
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
Create a CLI for adding new questions #134
Comments
I would like to work on this project. I have come up with some points that need to be discussed.
Or maybe we can ask if user wants to add a template or complete question through cli (for those who can work on |
Yeah, maybe it would be better to just have a questionTemplate.json file that had all the required fields and comments about how to use them appropriately? |
It is a good idea to let someone get started by using the My approach is to add a
Now after taking all the inputs the generator automatically puts the template along with Once we achieve this, we can make a extend it's capabilities to add a complete question without going to editor according to feedback from the community. The problem we will encounter is that when we add the |
Ooh I like this! I agree that JSON is probably better. My only concern that I can think of right now of switching everything to JSON is that you can't use template literals in JSON. We rely pretty heavily on template literals for our questions that have code blocks. I understand that template literals are just plain old strings under the hood, but it would be a bit of a pain to use plain old strings instead of template literals for code blocks. |
The CLI would guide you through creating a new question, create ids for you, and then add the question to the correct file. This isn't super important, but it would be a fun project!
The text was updated successfully, but these errors were encountered: