We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d85c9a commit afdba84Copy full SHA for afdba84
subcommand/extension.go
@@ -15,6 +15,10 @@ import (
15
// It receives a GlobalState instance that provides access to configuration, logging,
16
// file system, and other shared k6 runtime state. The returned Command will be
17
// integrated into k6's CLI as a subcommand.
18
+//
19
+// WARNING: The GlobalState parameter is read-only and must not be modified or altered
20
+// in any way. Modifying the GlobalState can make k6 core unstable and lead to
21
+// unpredictable behavior.
22
type Constructor func(*state.GlobalState) *cobra.Command
23
24
// RegisterExtension registers a subcommand extension with the given name and constructor function.
0 commit comments