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

ENH: Add nextstrain update --all (or all) command or support multiple arguments #230

Open
corneliusroemer opened this issue Oct 26, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@corneliusroemer
Copy link
Member

Context

I have multiple nextstrain runtimes installed. It would be nice if there was a way to update both conda and docker with one command.

This could be done by supporting all or --all. Or by allowing multiple runtimes to be passed to update, instead of just one.

Maybe passing multiple arguments would be easier to do, just need to change argparse in one place.

Something like this:
image

@corneliusroemer corneliusroemer added the enhancement New feature or request label Oct 26, 2022
@tsibley
Copy link
Member

tsibley commented Oct 27, 2022

I'd favor nextstrain update accepting multiple runtime names, just like nextstrain check-setup does. Without any arguments, the behaviour should still be to update just the default runtime. Besides changing the argparse parameter in nextstrain.cli.command.update.register_parser(), we'd also need to update nextstrain.cli.command.update.run() to handle multiple runtimes sensibly. This includes aggregating final status checks so an appropriate exit code can be used even if some runtimes are successfully updated and others are not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Backlog
Development

No branches or pull requests

2 participants