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

Use kwargs for common argument parsing #9

Open
ejseqera opened this issue Jul 12, 2023 · 0 comments
Open

Use kwargs for common argument parsing #9

ejseqera opened this issue Jul 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ejseqera
Copy link
Member

We already support using kwargs in the tower class for constructing command line arguments to _tw_run(), we can extend this to support workspace, name, and etc to avoid having to specify the the cli option followed by the argument for each invocation of a tw subcommand.

For example,
Currently we do something like:

tw.launch("--name", "my_pipeline_name", "--compute-env", "my_compute_env", "--workspace", "my_workspace")

Whereas we can do:

tw.launch(name="my_pipeline_name", compute_env="my_compute_env", workspace="my_workspace")

This would simplify alot of the helper functions we have for the cli interface as well.

@ejseqera ejseqera added the enhancement New feature or request label Jul 12, 2023
@ejseqera ejseqera self-assigned this Jul 12, 2023
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
None yet
Development

No branches or pull requests

1 participant