k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Command extension type

Open szkiba opened this issue 2 years ago • 0 comments

Feature Description

It would be advisable to occasionally expand the k6 command with functionalities not directly related to test execution. These additional functionalities could be included in the k6 binary in the form of an extension.

Suggested Solution (optional)

A Command extension could be introduced along the lines of JavaScript and the Output extension, which would make it possible to extend the k6 command line with new sub-commands.

An API supporting command extension registration can be introduced. During the construction of the k6 command line, after the built-in commands, the sub-commands defined by the previously registered command extensions would also be included in the root command.

szkiba avatar Aug 21 '23 15:08 szkiba