-
Notifications
You must be signed in to change notification settings - Fork 104
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
(SDK-336) Add operating system question to the new module interview #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I tried it out on Linux, and it worked fine!
I'll merge as soon as the rubocop fixes have passed CI.
When looking at the output, I was thinking about sorting the operatingsystem_support
section by OS name, but a) the to_json method only calls to the library, making that harder than it looked, and b) having it like this keeps the siblings together in the list, which is a bonus.
Without this pressing ^C at the final prompt in the interview would cause an ugly stack trace: ``` About to generate this module; continue? (Y/n) /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:336:in `handle_interrupt': TTY::Prompt::Reader::InputInterrupt (TTY::Prompt::Reader::InputInterrupt) from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:137:in `get_codes' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:174:in `block in read_line' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:97:in `unbufferred' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:174:in `read_line' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/question.rb:158:in `read_input' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/question.rb:147:in `process_input' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/question.rb:112:in `render' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/confirm_question.rb:65:in `call' from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt.rb:314:in `yes?' from /home/david/git/pdk/lib/pdk/generators/module.rb:310:in `module_interview' ```
Appveyor needed a rebuild to become green, after failing to git clone some dependencies. |
WIP because I need to test this out on windows