-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
nextercism: Consider a --remote flag for open #460
Comments
I'm interested in this issue. Can you direct me to the files that need to be changed? |
Hi @palash25, that's great. This needs to be based off of the You would need to create an We have an abstraction that helps us do some of the setup here: https://github.com/exercism/cli/blob/nextercism/cmd/cmd_test.go |
Open has some nice functionality that lets you specify just the name of an exercise, and it will find all the possible matches that you have locally, and ask which one you want to open.
Many people work on multiple computers, or might not have all their Exercism work downloaded to their computer, which means that they might actually want to open something that they don't have locally.
In this case, it would be nice to provide a
--remote
flag which would ask the API what potential exercises we are talking about.This will require defining in detail what the API needs to return and how the CLI will display this.
My gut feeling is that it should display the list exactly as though it were local ones.
When implementing this, go ahead and write a test with a test server to fake out the API, until you get it the way you want it. A good starting point is probably:
The text was updated successfully, but these errors were encountered: