aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-26 03:29:09 +0800
committerF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-26 04:31:40 +0800
commit1db5ff617fe772d885e1cfd9ba67f645d8d4ee35 (patch)
tree1b6e442ccc65a068aec3d84022fdcb122c77ecd2 /packages/sol-doc
parentac5376a1ca29f8cba3c94f759654ea50d4947f84 (diff)
downloaddexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.tar
dexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.tar.gz
dexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.tar.bz2
dexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.tar.lz
dexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.tar.xz
dexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.tar.zst
dexon-sol-tools-1db5ff617fe772d885e1cfd9ba67f645d8d4ee35.zip
fix: split line for readability
https://github.com/0xProject/0x-monorepo/pull/1004#discussion_r219978696 https://github.com/0xProject/0x-monorepo/pull/1004
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/src/cli.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/sol-doc/src/cli.ts b/packages/sol-doc/src/cli.ts
index 1cdc35b64..b29a89147 100644
--- a/packages/sol-doc/src/cli.ts
+++ b/packages/sol-doc/src/cli.ts
@@ -18,9 +18,8 @@ const JSON_TAB_WIDTH = 4;
.demandOption('contracts-dir')
.array('contracts')
.help().argv;
- process.stdout.write(
- JSON.stringify(await generateSolDocAsync(argv.contractsDir, argv.contracts), null, JSON_TAB_WIDTH),
- );
+ const doc = await generateSolDocAsync(argv.contractsDir, argv.contracts);
+ process.stdout.write(JSON.stringify(doc, null, JSON_TAB_WIDTH));
})().catch(err => {
throw err;
});