From fbb8670c50c1b53c3de864064e28860897c4906d Mon Sep 17 00:00:00 2001 From: Ori Pomerantz Date: Wed, 8 Nov 2023 12:40:27 -0600 Subject: [PATCH 1/2] docs(cli): add tablegen to newdocs --- next-docs/pages/cli/tablegen.mdx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/next-docs/pages/cli/tablegen.mdx b/next-docs/pages/cli/tablegen.mdx index 86f0267460..c6bfce189b 100644 --- a/next-docs/pages/cli/tablegen.mdx +++ b/next-docs/pages/cli/tablegen.mdx @@ -1 +1,25 @@ # mud tablegen + +Autogenerate MUD Store table libraries based on the config file + +## Sample usage + +Use the definitions in `mud.config.ts` to generate the Solidity definitions for tables and put them in `src/codegen/tables`, with an overall index that imports all the definitions in `src/codegen/index.sol`. + +## Options + +These are the command line options you can specify on `mud tablegen`: + +| Option | Meaning | Type | Default value | +| -------------- | ----------------------- | ------- | --------------- | +| `--version` | Show version number | boolean | false | +| `--configPath` | Path to the config file | string | `mud.config.ts` | +| `--help` | Show help | boolean | false | + +## Debugging + +To generate debug messages, use this command: + +```sh copy +export DEBUG=mud:common:codegen +``` From 652b0afe785ee8d9ba3a081d7d70893ad2707fb5 Mon Sep 17 00:00:00 2001 From: alvarius Date: Fri, 10 Nov 2023 12:16:43 +0300 Subject: [PATCH 2/2] Update next-docs/pages/cli/tablegen.mdx --- next-docs/pages/cli/tablegen.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-docs/pages/cli/tablegen.mdx b/next-docs/pages/cli/tablegen.mdx index c6bfce189b..7d5fec52e6 100644 --- a/next-docs/pages/cli/tablegen.mdx +++ b/next-docs/pages/cli/tablegen.mdx @@ -1,6 +1,6 @@ # mud tablegen -Autogenerate MUD Store table libraries based on the config file +Autogenerate MUD Store table libraries based on the config file. ## Sample usage