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

Refactoring to use the cobra library. #167

Merged
merged 13 commits into from
Apr 8, 2025

Conversation

szkiba
Copy link
Contributor

@szkiba szkiba commented Apr 2, 2025

New features

Use the Cobra library for CLI subcommand handling #150

A new main package has been created in the repository root for the main() function that uses the Cobra library. The old main() function remains unchanged in the cmd/xk6 folder for backward compatibility.

Important

Starting with xk6 v1.0.0, the main() function in the cmd/xk6 folder will also use the Cobra library.

Early access

The xk6 tool is currently under refactoring. As of v0.17.0, an early access executable (xk6ea) is available in the downloadable release archives alongside xk6. Check READMEea.md for usage.

@szkiba szkiba linked an issue Apr 2, 2025 that may be closed by this pull request
@szkiba szkiba marked this pull request as ready for review April 3, 2025 07:36
@szkiba szkiba requested a review from a team as a code owner April 3, 2025 07:36
@szkiba szkiba requested review from pablochacin and removed request for a team April 3, 2025 07:36
@szkiba szkiba marked this pull request as draft April 8, 2025 09:48
@szkiba szkiba marked this pull request as ready for review April 8, 2025 10:11
@szkiba szkiba merged commit d8c1356 into master Apr 8, 2025
20 checks passed
@szkiba szkiba deleted the 150-use-the-cobra-library-for-cli-subcommand-handling branch April 8, 2025 13:13
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.

Use the Cobra library for CLI subcommand handling
2 participants