Skip to content

Comments

Add subcommands property for subcommand type extensions#315

Merged
szkiba merged 2 commits intomainfrom
314-add-support-for-subcommand-type-k6-extensions
Feb 11, 2026
Merged

Add subcommands property for subcommand type extensions#315
szkiba merged 2 commits intomainfrom
314-add-support-for-subcommand-type-k6-extensions

Conversation

@szkiba
Copy link
Contributor

@szkiba szkiba commented Feb 11, 2026

Add support for k6 subcommand type extensions introduced in k6 v1.5.0. The new subcommands property lists the registered k6 subcommand names that can be invoked using k6 x NAME.

Changes

  • Added subcommands property to the registry schema
  • Property is an array of strings containing registered subcommand names
  • Supports extensions that register multiple subcommands
  • Updated schema documentation and validation

Example

- module: github.com/example/xk6-example
  description: Example extension with subcommands
  subcommands:
    - example

This allows users to invoke:

k6 x example

Related Issues

Closes #314

Add support for k6 subcommand type extensions introduced in k6 v1.5.0.
The new `subcommands` property lists the registered k6 subcommand names
that can be invoked using `k6 x NAME`.

The subcommands property:
- Is an array of strings
- Contains names of subcommands registered by the extension
- Supports extensions that register multiple subcommands
@szkiba szkiba requested a review from a team as a code owner February 11, 2026 09:20
@szkiba szkiba requested a review from mstoykov February 11, 2026 09:20
@szkiba szkiba linked an issue Feb 11, 2026 that may be closed by this pull request
@szkiba szkiba merged commit 265dc2b into main Feb 11, 2026
18 checks passed
@szkiba szkiba deleted the 314-add-support-for-subcommand-type-k6-extensions branch February 11, 2026 11:19
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.

Add support for subcommand type k6 extensions

3 participants