Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Oct 3, 2023
1 parent bbaec8c commit 7baf988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changeset/silver-dolls-shave.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion packages/gas-report/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ const commandModule: CommandModule<Options, Options> = {
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",
},
});
},

Expand Down

0 comments on commit 7baf988

Please sign in to comment.