Open andrewtavis opened 4 days ago
@andrewtavis I have an idea for this. I think if we update the interactive.py with the following changes we will be able to add the functionality to re-ask the user for a response if they haven't provided one:
get_selection()
function to re-ask for input if no valid input is provided.select_languages()
and select_data_types()
functions to handle re-asking the question.Sounds great, @KesharwaniArpita! Let's finish the other issue and then we can move on to this one :)
Hi @andrewtavis , I'm interested in this. Can you assign this to me?
Hi @omoladd, I was very curious about how to solve this issue and tried to tweak the existing functions a little bit in the day. Since you also seem interested would you like to take a look into the PR and see if it can be improved your suggestion would mean a lot.
@KesharwaniArpita, I didn’t realize you already responded. I opened a PR too; https://github.com/scribe-org/Scribe-Data/pull/239
Great. Would love to colab!!!
Sure! We can communicate better on matrix.
Terms
Description
The Scribe-Data interactive mode can be accessed in the following way:
With this the user is prompted to select options that would be appropriate to get the data that they need. One thing that's missing is functionality to re-ask the user for a response if they did not provide one. If the user provides an invalid response, then the program should error, but if the user just hits enter then they should be asked the same question again - i.e.:
Contribution
Happy to support this with a review and answer any questions a contributor might have!