Skip to content

Commit

Permalink
docs: fix section moving
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Jul 4, 2024
1 parent 959e284 commit 6a0acf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ The launcher will always run the k6 test script with the appropriate k6 binary,

Any k6 command can be used. Use the `help` command to list the available k6 commands.

Any number of `"use k6"` pragmas can be used.

### Pragma

Version constraints can be specified using the JavaScript `"use ..."` pragma syntax for k6 and extensions. Put the following lines at the beginning of the test script:
Expand All @@ -35,6 +33,8 @@ Version constraints can be specified using the JavaScript `"use ..."` pragma syn
"use k6 with k6/x/faker > 0.2";
```

Any number of `"use k6"` pragmas can be used.

> **Note**
> The use of pragmas is completely optional for JavaScript type extensions, it is only necessary if you want to specify version constraints.
Expand Down Expand Up @@ -148,6 +148,7 @@ major change is API breaking. For example,
[xk6-top]: https://github.com/szkiba/xk6-top
[Masterminds/semver]: https://github.com/Masterminds/semver


```
k6x [flags] [command]
```
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ The launcher will always run the k6 test script with the appropriate k6 binary,

Any k6 command can be used. Use the `help` command to list the available k6 commands.

Any number of `"use k6"` pragmas can be used.

### Pragma

Version constraints can be specified using the JavaScript `"use ..."` pragma syntax for k6 and extensions. Put the following lines at the beginning of the test script:
Expand All @@ -19,6 +17,8 @@ Version constraints can be specified using the JavaScript `"use ..."` pragma syn
"use k6 with k6/x/faker > 0.2";
```

Any number of `"use k6"` pragmas can be used.

> **Note**
> The use of pragmas is completely optional for JavaScript type extensions, it is only necessary if you want to specify version constraints.
Expand Down

0 comments on commit 6a0acf4

Please sign in to comment.