diff --git a/.changeset/silver-dolls-shave.md b/.changeset/silver-dolls-shave.md index 84f81df962..4cb44e330f 100644 --- a/.changeset/silver-dolls-shave.md +++ b/.changeset/silver-dolls-shave.md @@ -5,6 +5,7 @@ Allow the `gas-report` CLI to parse logs via `stdin`, so it can be used with custom test commands (e.g. `mud test`). Usage: + ```sh # replace `forge test -vvv` with the custom test command GAS_REPORTER_ENABLED=true forge test -vvv | pnpm gas-report --stdin diff --git a/packages/gas-report/ts/index.ts b/packages/gas-report/ts/index.ts index 9c61aaa516..35b644f66c 100644 --- a/packages/gas-report/ts/index.ts +++ b/packages/gas-report/ts/index.ts @@ -53,7 +53,10 @@ const commandModule: CommandModule = { return yargs.options({ save: { type: "string", desc: "Save the gas report to a file" }, compare: { type: "string", desc: "Compare to an existing gas report" }, - stdin: { type: "boolean", desc: "Parse the gas report logs from stdin instead of running an internal test command" }, + stdin: { + type: "boolean", + desc: "Parse the gas report logs from stdin instead of running an internal test command", + }, }); },