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

Idea: Add method / functionality to require all variables #2026

Open
luiavila opened this issue Jan 27, 2025 · 0 comments
Open

Idea: Add method / functionality to require all variables #2026

luiavila opened this issue Jan 27, 2025 · 0 comments
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@luiavila
Copy link

Description

Currently, tasks that utilize many variables causes a lot of redundant typing of the required variable

tasks:
  MY_TASK_W_LOTS_OF_OPTIONS:
    requires: [OPTION_A, OPTION_B, OPTION_C, OPTION_D, OPTION E, OPTION F ......]
    cmds:
      - make some_recipe A={{.OPTION_A}} B={{.OPTION_B}} C={{.OPTION_C}} D={{.OPTION_D}} E={{.OPTION_E}} F={{.OPTION_F}} .....

Desire is to create a global or task level option to require all variables

Possible solutions:

tasks:
  MY_TASK_W_LOTS_OF_OPTIONS:
    requires: "*"
    cmds:
      - make some_recipe A={{.OPTION_A}} B={{.OPTION_B}} C={{.OPTION_C}} D={{.OPTION_D}} E={{.OPTION_E}} F={{.OPTION_F}} .....
tasks:
  MY_TASK_W_LOTS_OF_OPTIONS:
    require-all: True
    cmds:
      - make some_recipe A={{.OPTION_A}} B={{.OPTION_B}} C={{.OPTION_C}} D={{.OPTION_D}} E={{.OPTION_E}} F={{.OPTION_F}} .....
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants