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

Chore: Refactor lib.RuntimeOptions load #4605

Merged
merged 1 commit into from
Mar 10, 2025
Merged

Conversation

joanlopez
Copy link
Contributor

What?

Small refactor to make the code to populate lib.RuntimeOptions from different sources (CLI flags, environment variables, etc) slightly more readable and cleaner, by separating the read from each source into a different method.

Why?

As discussed 👉🏻 https://github.com/grafana/k6/pull/4089/files#r1965192447

@joanlopez joanlopez requested a review from mstoykov March 6, 2025 10:20
@joanlopez joanlopez self-assigned this Mar 6, 2025
@joanlopez joanlopez requested a review from a team as a code owner March 6, 2025 10:20
@joanlopez joanlopez requested review from inancgumus and removed request for a team March 6, 2025 10:20
@joanlopez joanlopez added this to the v1.0.0-rc1 milestone Mar 6, 2025
@joanlopez joanlopez merged commit 7aac175 into master Mar 10, 2025
28 checks passed
@joanlopez joanlopez deleted the runtime-options-refactor branch March 10, 2025 09:48
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.

3 participants