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

Expose 'testingfarm.cli_args' as CLI option #141

Open
lukaszachy opened this issue Dec 10, 2024 · 4 comments
Open

Expose 'testingfarm.cli_args' as CLI option #141

lukaszachy opened this issue Dec 10, 2024 · 4 comments
Assignees

Comments

@lukaszachy
Copy link
Contributor

lukaszachy commented Dec 10, 2024

I use recipes which contain

fixtures:
  testingfarm:
    cli_args: "--repository-file URL"

Would be nice to be able to set this option via CLI (during schedule or execute) to avoid modifying the 'recipe' file.

@lukaszachy lukaszachy changed the title Expose 'testing-farm.cli_args' as CLI option Expose 'testingfarm.cli_args' as CLI option Dec 10, 2024
@kkaarreell
Copy link
Collaborator

kkaarreell commented Dec 11, 2024

I am thinking if we should allow to specify any fixtures override from CLI. Nothing perfect, just add the respective option to the "fixtures" list, overriding an existing value.

newa schedule --fixture testingfarm.cli_args = "foo" ...

@lukaszachy
Copy link
Contributor Author

I am thinking if we should allow to specify any fixtures override from CLI.

It will be more generic and cover my usecase as well, so +1

@kkaarreell
Copy link
Collaborator

As a workaround, you can define cli_args: "${TF_CLI_ARGS}" and define this variable on a cmdline.

@kkaarreell kkaarreell self-assigned this Dec 19, 2024
@kkaarreell
Copy link
Collaborator

POC in #145

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

No branches or pull requests

2 participants