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

[POC][cli-options-from-step-decorators][WIP] #1985

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valayDave
Copy link
Collaborator

Two parts to this whole change:

How do step decorators inject CLI parameters

  • This part is handled by piggy backing on the flow_context to inject the unique steps decorators in the code.
  • Once the unique step decorators are available via the current_flow local variable, we can extract all the options a decorator class exposes and then inject them into the CLI based on the kind/type of CLI we need to inject it into.

How are the injected parameters passed down to the decorators.

  • Current TBD
  • Needs more discussion to decide what needs to happen here.

Two parts to this whole change:
> How do step decorators inject CLI parameters
- This part is handled by piggy backing on the `flow_context` to inject the unique steps decorators in the code.
- Once the unique step decorators are available via the `current_flow` local variable, we can extract all the options
a decorator class exposes and then inject them into the CLI based on the kind/type of CLI we need to inject it into.

> How are the injected parameters passed down to the decorators.
- Current TBD
- Needs more discussion to decide what needs to happen here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant